[hatari-devel] evaluate.c headers missing
Eero Tamminen
eerot at users.berlios.de
Thu Oct 22 23:59:30 CEST 2009
Hi,
On Thursday 22 October 2009, Matthias Arndt wrote:
> Am Donnerstag, den 22.10.2009, 23:24 +0300 schrieb Eero Tamminen:
> > > I'd prefer to commit a patch for Makefile.cnf.in etc. to add
> > > -std=gnu9x to the CFLAGS where needed...
> >
> > As to GNU stuff, how you could e.g. compile gemdos.c (which has been
> > using the alphasort() & scandir() unix functions for years) earlier?
>
> With the defaults that have been set for ages. I've been compiling
> nearly every CVS and HG change set since v0.05 or so...
> slighty differing versions of SDL and gcc ofcourse due to Linux
> distribution changes.
I mean, if it's worked for you earlier, just setting --std=c99 shouldn't
suddenly disable something you already had on the command line.
I digged a bit into this and it seems to be "sdl-config --cflags" which gets
the -D_GNU_SOURCE=1 to the compiler options through SDL_CFLAGS.
And in "./src/gui-sdl/Makefile" there's this:
CFLAGS += $(INCFLAGS) $(SDL_CFLAGS) -Wno-write-strings
So, how your compilation can miss it?
- Eero
PS. This might not work on Windows / with MinGW because:
Makefile-MinGW.cnf:SDL_CFLAGS ?= -I/mingw/include/SDL
More information about the hatari-devel
mailing list