[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
#if __GNUC__ > 2 ..
From: |
Jan Nieuwenhuizen |
Subject: |
#if __GNUC__ > 2 .. |
Date: |
Sun, 18 Jun 2017 19:08:02 +0200 |
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 <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com
- #if __GNUC__ > 2 ..,
Jan Nieuwenhuizen <=