This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: variable-sized array fields in structure?



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} ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]