summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-28 14:32:56 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-23 12:15:05 -0800
commited38c2648cf7cc04c1d03f8d14375815f6cf536e (patch)
tree2a0e3fefddc2e15c8ab0da193f33269a0f24a259
parent7ee7fd1f4c72b2ab6dba0413e63dd2e8b95b2112 (diff)
Fix Sun compiler check that got turned around
Since the check is for !(compilers that support __builtin_constant_p) it needs to be !(gcc or new enough Sun cc), but was written as !(gcc or too old Sun cc). Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--include/misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/misc.h b/include/misc.h
index dc039113d..2e8dd1b89 100644
--- a/include/misc.h
+++ b/include/misc.h
@@ -269,7 +269,7 @@ static inline void wrong_size(void)
}
#endif
-#if !(defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C < 0x590)))
+#if !(defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)))
static inline int __builtin_constant_p(int x)
{
return 0;