X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=Makefile.am;h=45a85af82597b50324234a3618e21ecc16d1c9b5;hp=75ed97168a1f8f8c3d4565235aca651541559b22;hb=19fd5bbc4f64cc8bf735f7c2c0bb864876998cf4;hpb=61d4daebb36e567f79f47877b358969b922396d4 diff --git a/Makefile.am b/Makefile.am index 75ed9716..45a85af8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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