diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-11-03 21:34:58 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-11-03 21:35:26 -0700 |
commit | 5833fd5de856045558d77dbdea51f7dee702483b (patch) | |
tree | 3fadf91f81792c59e569f0c4f391b6382731b3ef /lib/intprops.h | |
parent | 68c5afe6a164f0ffdcbc73a2b8bfe8c84dd4dae5 (diff) | |
download | gnulib-5833fd5de856045558d77dbdea51f7dee702483b.tar.gz |
intprops: port to older XL C
Problem reported by Alexander Samoilov in:
http://lists.gnu.org/archive/html/bug-gnulib/2016-10/msg00166.html
http://savannah.nongnu.org/bugs/?49448
* lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
Define to 1 only for XL C 12.1 or later, since this bug
occurs in XL C for AIX 6.0 but not in 12.1.
Diffstat (limited to 'lib/intprops.h')
-rw-r--r-- | lib/intprops.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/intprops.h b/lib/intprops.h index 9734d0742b..716741adc5 100644 --- a/lib/intprops.h +++ b/lib/intprops.h @@ -105,7 +105,8 @@ verify (TYPE_WIDTH (unsigned int) == UINT_WIDTH); /* Does the __typeof__ keyword work? This could be done by 'configure', but for now it's easier to do it by hand. */ -#if (2 <= __GNUC__ || defined __IBM__TYPEOF__ \ +#if (2 <= __GNUC__ \ + || (1210 <= __IBMC__ && defined __IBM__TYPEOF__) \ || (0x5110 <= __SUNPRO_C && !__STDC__)) # define _GL_HAVE___TYPEOF__ 1 #else |