bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bison 1.31 and non-GCC compilers


From: Albert Chin-A-Young
Subject: bison 1.31 and non-GCC compilers
Date: Thu, 17 Jan 2002 10:45:09 -0600
User-agent: Mutt/1.2.5i

Need to define __attribute__ away for non-GCC compilers as well (i.e.
the vendor C compiler).

-- 
albert chin (address@hidden)

-- snip snip
--- src/system.h.orig   Thu Jan 17 10:26:18 2002
+++ src/system.h        Thu Jan 17 10:27:00 2002
@@ -138,7 +138,8 @@
 
 #ifndef __attribute__
 /* This feature is available in gcc versions 2.5 and later.  */
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
+# if !defined (__GNUC__) || __GNUC__ < 2 || \
+(__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
 #  define __attribute__(Spec) /* empty */
 # endif
 /* The __-protected variants of `format' and `printf' attributes



reply via email to

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