Skip to content

Commit 3d85f48

Browse files
author
Matthias Güdemann
committed
disable unaligned load/store for g++
1 parent 1f79d21 commit 3d85f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miniz/miniz.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
#define MINIZ_LITTLE_ENDIAN 1
225225
#endif
226226

227-
#if MINIZ_X86_OR_X64_CPU
227+
#if defined(MINIZ_X86_OR_X64_CPU) && !defined(__GNUG__)
228228
/* Set MINIZ_USE_UNALIGNED_LOADS_AND_STORES to 1 on CPU's that permit efficient integer loads and stores from unaligned addresses. */
229229
#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 1
230230
#endif

0 commit comments

Comments
 (0)