diff options
Diffstat (limited to 'Xfuncproto.h.in')
-rw-r--r-- | Xfuncproto.h.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in index dc913fa..3eac5d5 100644 --- a/Xfuncproto.h.in +++ b/Xfuncproto.h.in @@ -161,7 +161,8 @@ in this Software without prior written authorization from The Open Group. /* requires xproto >= 7.0.21 */ #ifndef _X_RESTRICT_KYWD # if defined(restrict) /* assume autoconf set it correctly */ || \ - (defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L)) /* C99 */ + (defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */ \ + && !defined(__cplusplus)) /* Workaround g++ issue on Solaris */ # define _X_RESTRICT_KYWD restrict # elif defined(__GNUC__) && !defined(__STRICT_ANSI__) /* gcc w/C89+extensions */ # define _X_RESTRICT_KYWD __restrict__ |