[Top][All Lists]

[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__))
     # define _GL_ATTRIBUTE_PURE /* empty */

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__

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


Jan Nieuwenhuizen <address@hidden> | GNU LilyPond
Freelance IT | AvatarĀ®

reply via email to

[Prev in Thread] Current Thread [Next in Thread]