Makefile: massage Wiimote CFLAGS
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Wed, 18 Mar 2009 00:07:38 +0000 (00:07 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Wed, 18 Mar 2009 00:07:38 +0000 (00:07 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@2799 78b8d119-cf0a-0410-b17c-f493084dd1d7

Makefile

index 4c7df4a..84e6e93 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,9 +31,12 @@ endif
 SSE_CFLAGS := $(shell env CC="$(CC)" sh scripts/get-sse-cflags.sh)
 
 ifeq ($(ENABLE_WII),1)
-    # libwiimote is NOT ANSI compliant (TODO, check if this is necessary.  GCC
-    # is supposed to suppress warnings from system headers.)
-    ALL_CFLAGS := $(SSE_CFLAGS) $(CFLAGS)
+    # -std=c99 because we need isnormal and -fms-extensions because
+    # libwiimote headers makes heavy use of the "unnamed fields" GCC
+    # extension.
+
+    ALL_CFLAGS := -Wall -std=c99 -pedantic -fms-extensions \
+       $(SSE_CFLAGS) $(CFLAGS)
 else
     ALL_CFLAGS := -Wall -ansi -pedantic $(SSE_CFLAGS) $(CFLAGS)
 endif