[GRASS5] r.sun bug
neteler at itc.it
Wed Feb 26 06:21:16 EST 2003
On Mon, Feb 24, 2003 at 06:53:25PM +0000, Glynn Clements wrote:
> Unfortunately, "-ansi" also disables all of the feature test macros,
> so you have to re-enable them manually, e.g.
> CFLAGS='-g -ansi -D_BSD_SOURCE=1 -D_SVID_SOURCE=1 -D_POSIX_SOURCE=1 -D_POSIX_C_SOURCE=199506L'
> _BSD_SOURCE and _SVID_SOURCE are sufficient for everything except
> sigaction(), which also requires _POSIX_SOURCE.
> However, using _GNU_SOURCE doesn't work, as sys/ucontext.h (included
> by signal.h) and curses.h both try to define ERR.
> The above CFLAGS setting works, and highlighted the "inline" error in
> src/raster/r.sun/main.c, as well as the use of C++ comments in
Are there objections to hardcode above CFLAGS in 5.1 to
force pretty programming?
More information about the grass-dev