Mercurial > hg > octave-nkf > gnulib-hg
changeset 17545:a89056c19ff8
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 | 6d4e36653a40 |
children | f4a8f8081aaa |
files | ChangeLog lib/intprops.h |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-11-03 Paul Eggert <eggert@cs.ucla.edu> + + 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 <eggert@cs.ucla.edu> obstack: pacify HP C
--- 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