Hi Matt!
When I use Nyacc to parse things like
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
#else
# define _GL_ATTRIBUTE_PURE /* empty */
#endif
I get
foo.c:1: undefined identifier: "__GNUC__"
foo.c:1: CPP error
I have been avoiding this using #:cpp-defs '( ... "__GNUC__=0" ) for Mes
but for real projects that put gcc-specific things inside
#ifdef __GCC__
#endif
that does not work. I'm trying to compile different things currently,
like 8cc, pcc and Guile's eval.c-- without much success ATM--, changing
and editing lots of things like these defines but it is getting hairy
now.
Greetings,
janneke
--
Jan Nieuwenhuizen <[email protected]> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com