From: Bruno H. <br...@cl...> - 2017-06-27 10:06:13
|
Hi Compro, > lispbibl.d: > #elif 0 > /* Usually one would omit the array's limit */ > #define unspecified > > The above description/definition looks a bit crooked to me. I mean its > possible to declare an array inside a structure without any size when > compiling it with g++. But this is just ignored by the preprocessor. > And there is an #else block too for other platforms but that above > condition should be fixed. Not sure what you mean. You want to replace the #elif 0 <code that works only with some compilers> #else <code that works with all compilers> #endif by #elif <some_condition> <code that works only with some compilers> #else <code that works with all compilers> #endif ? Well, what would be the benefit? Btw, gnulib uses this code: #if __STDC_VERSION__ < 199901L # define __FLEXIBLE_ARRAY_MEMBER 1 #else # define __FLEXIBLE_ARRAY_MEMBER #endif This happens to work too... Bruno |