]> wimlib.net Git - wimlib/blobdiff - Makefile.am
Improve handling of invalid filenames
[wimlib] / Makefile.am
index 75ed97168a1f8f8c3d4565235aca651541559b22..45a85af82597b50324234a3618e21ecc16d1c9b5 100644 (file)
@@ -7,6 +7,11 @@ AM_CFLAGS      = -std=gnu99 -Wmissing-prototypes -Wstrict-prototypes   \
                  -Werror-implicit-function-declaration                 \
                  -fno-common -Wundef -Wno-pointer-sign
 
+if WINDOWS_NATIVE_BUILD
+# This option is needed to make packed structures work as expected
+# with gcc 4.7+ (mingw) on Windows.
+AM_CFLAGS += -mno-ms-bitfields
+endif
 
 lib_LTLIBRARIES = libwim.la