From: Paul Eggert Date: Mon, 4 Nov 2013 03:52:32 +0000 (-0800) Subject: intprops: port to Oracle Studio c99 X-Git-Tag: snapshot-start~44 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=d208f3ab64d5d5b70356ca61cc2d8d0373407a3c;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 009382cea..a9cac6de1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-11-03 Paul Eggert + + 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. + 2013-10-31 Paul Eggert obstack: pacify HP C diff --git a/lib/intprops.h b/lib/intprops.h index f57f9b4dd..1d2deb7fc 100644 --- a/lib/intprops.h +++ b/lib/intprops.h @@ -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