This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: variable-sized array fields in structure?
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 24 Jan 2007 16:33:53 +0100
- Subject: Re: variable-sized array fields in structure?
- References: <20070124152956.GA32226@ours.starynkevitch.net>
I just wrote in my previous message
http://gcc.gnu.org/ml/gcc/2007-01/msg00958.html [....]
> 2. To have a definition of VARYING_SIZE is some of our header files
> (config.h, or system.h or others) which is 1 for old compilers and
> empty for new ones (including gcc itself), maybe
>
> #if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
> #define VARYING_SIZE 1
> #else
> #define VARYING_SIZE /*empty*/
> #endif
I made a mistake above, I meant the symetrical
#if (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)
#define VARYING_SIZE /*empty*/
#else
#define VARYING_SIZE 1
#endif
Sorry for the mistake.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faïencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***