Makefile: undefine _GNU_SOURCE defined by sdl-config
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Tue, 18 Nov 2008 18:12:30 +0000 (18:12 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Tue, 18 Nov 2008 18:12:30 +0000 (18:12 +0000)
_GNU_SOURCE undoes many of C library-related effects of the "-ansi"
flag, and it's not clear why sdl-config defines it at all.

git-svn-id: https://s.snth.net/svn/neverball/trunk@2632 78b8d119-cf0a-0410-b17c-f493084dd1d7

Makefile

index 72e208a..07154ac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -40,7 +40,7 @@ endif
 
 # Preprocessor...
 
-SDL_CPPFLAGS := $(shell sdl-config --cflags)
+SDL_CPPFLAGS := $(shell sdl-config --cflags) -U_GNU_SOURCE
 PNG_CPPFLAGS := $(shell libpng-config --cflags)
 
 ALL_CPPFLAGS := $(SDL_CPPFLAGS) $(PNG_CPPFLAGS) -Ishare \