diff options
author | Bruno Haible <bruno@clisp.org> | 2018-12-16 10:46:13 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2018-12-16 10:46:13 +0100 |
commit | 509a02974a0b22a8c2a05a8dcd4ac7d2e6d9152a (patch) | |
tree | aa1ff1a57b243c61a76939bc387260a79c5c07ec /lib/cdefs.h | |
parent | 926aced790385d79a76b2ab614650af892e85ea1 (diff) | |
download | gnulib-509a02974a0b22a8c2a05a8dcd4ac7d2e6d9152a.tar.gz |
obstack, libc-config: Support HP-UX cc in C99 mode.
* lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
compiler, even when in C99 mode.
* lib/cdefs.h (__flexarr): Likewise.
* lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
Diffstat (limited to 'lib/cdefs.h')
-rw-r--r-- | lib/cdefs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cdefs.h b/lib/cdefs.h index 98cf74995a..26e2f3fe98 100644 --- a/lib/cdefs.h +++ b/lib/cdefs.h @@ -139,7 +139,7 @@ Headers that should use flexible arrays only if they're "real" (e.g. only if they won't affect sizeof()) should test #if __glibc_c99_flexarr_available. */ -#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L +#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L && !defined __HP_cc # define __flexarr [] # define __glibc_c99_flexarr_available 1 #elif __GNUC_PREREQ (2,97) |