From d9133fd8ddd2a23d1b4b1196f5b27fe633effaac Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Sat, 5 Aug 2017 10:36:08 +0100 Subject: [PATCH] Compile with -mno-ms-bitfields As of GCC 4.7, the default behaviour when targetting Windows is for packed structures to use Microsoft's broken struct packing rules. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7285a1b..06387f3 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,8 @@ endif INCLUDE := -I./include/ -CFLAGS := -std=c99 -Wall -D_WIN32_WINNT=0x0500 -DHAVE_REMOTE $(DBG_OPT) $(INCLUDE) -CXXFLAGS := -std=c++0x -Wall -DHAVE_REMOTE $(DBG_OPT) $(INCLUDE) +CFLAGS := -std=c99 -mno-ms-bitfields -Wall -D_WIN32_WINNT=0x0500 -DHAVE_REMOTE $(DBG_OPT) $(INCLUDE) +CXXFLAGS := -std=c++0x -mno-ms-bitfields -Wall -DHAVE_REMOTE $(DBG_OPT) $(INCLUDE) # Used by mkdeps.pl #