bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] intprops: port to Oracle Studio c99


From: Paul Eggert
Subject: [PATCH] intprops: port to Oracle Studio c99
Date: Sun, 03 Nov 2013 19:54:27 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

* lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
---
 ChangeLog      | 6 ++++++
 lib/intprops.h | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 009382c..a9cac6d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-11-03  Paul Eggert  <address@hidden>
+
+       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  <address@hidden>
 
        obstack: pacify HP C
diff --git a/lib/intprops.h b/lib/intprops.h
index f57f9b4..1d2deb7 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
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]