diff lib/intprops.h @ 37225:2ddc20cfc68c

intprops: port to Oracle Studio c99 * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]: Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 03 Nov 2013 19:52:32 -0800
parents 6177e03c6e6c
children 344018b6e5d7
line wrap: on
line diff
--- a/lib/intprops.h	Thu Oct 31 09:44:44 2013 -0700
+++ b/lib/intprops.h	Sun Nov 03 19:52:32 2013 -0800
@@ -89,7 +89,8 @@
 
 /* Return 1 if the __typeof__ keyword works.  This could be done by
    'configure', but for now it's easier to do it by hand.  */
-#if 2 <= __GNUC__ || defined __IBM__TYPEOF__ || 0x5110 <= __SUNPRO_C
+#if (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
+     || (0x5110 <= __SUNPRO_C && !__STDC__))
 # define _GL_HAVE___TYPEOF__ 1
 #else
 # define _GL_HAVE___TYPEOF__ 0