Re: Definition not concrete
Bruno Haible <[email protected]>
| Newsgroups | gmane.lisp.clisp.devel |
|---|---|
| Message-ID | <3825481.mNDQ7b0sC4@omega> |
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
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel