X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/4663cb4d0c9b0ad8d5809a8911b9581db4d11126..a94396701038d2da8bb91f5fc31cf00083d16be9:/src/system.h diff --git a/src/system.h b/src/system.h index f0a76ceb..5613a92f 100644 --- a/src/system.h +++ b/src/system.h @@ -39,6 +39,7 @@ #include #include +#define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array)) #define STREQ(L, R) (strcmp(L, R) == 0) #define STRNEQ(L, R) (!STREQ(L, R)) @@ -97,7 +98,7 @@ typedef size_t uintptr_t; #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if (! defined __GNUC__ || __GNUC__ < 2 \ - || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__) + || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)) # define __attribute__(Spec) /* empty */ # endif #endif