diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-11-27 17:54:38 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-11-27 17:54:38 +0000 |
commit | a1620a4c559b148324f98cc959c481ece926f4a5 (patch) | |
tree | b100aa4ae1b1dbd040437ba80d320ac2beaf2cab /misc/sys/cdefs.h | |
parent | b91d5eda6e894ca12c4971dbcfb69f02abd42800 (diff) | |
download | glibc-a1620a4c559b148324f98cc959c481ece926f4a5.zip glibc-a1620a4c559b148324f98cc959c481ece926f4a5.tar.gz glibc-a1620a4c559b148324f98cc959c481ece926f4a5.tar.bz2 |
Update.
2000-11-27 Ulrich Drepper <drepper@redhat.com>
* iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
* misc/sys/cdefs.h: Define __flexarr.
Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.
* iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
* iconv/skeleton.c: Likewise.
* iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
* iconv/loop.c (get16): Add const to cast.
(get32): Likewise.
Diffstat (limited to 'misc/sys/cdefs.h')
-rw-r--r-- | misc/sys/cdefs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 3174a85..3d6a20b 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -93,6 +93,24 @@ #endif +/* Support for flexible arrays. */ +#if __GNUC_PREREQ (2,97) +/* GCC 2.97 supports C99 flexible array members. */ +# define __flexarr [] +#else +# ifdef __GNUC__ +# define __flexarr [0] +# else +# ifdef __STDC_VERSION__ && __STDC_VERSION__ >= 199901L +# define __flexarr [] +# else +/* Some other non-C99 compiler. Approximate with [1]. */ +# define __flexarr [1] +# endif +# endif +#endif + + /* __asm__ ("xyz") is used throughout the headers to rename functions at the assembly language level. This is wrapped by the __REDIRECT macro, in order to support compilers that can do this some other |