[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#3739) Compilation errors using SUNWspro Compilers
The bconfig.c problem is from trying to define a zero-element array.
There have been several methods for doing this over the years and gcc's is
unique. ISO C99 calls for a definition like '[]' instead of '[0]'.
If gcc isn't ISO C99 compatible, maybe there should be a configure
function to set an appropriate FLEXARRAY macro or something.
#ifdef IS_C99
#define FLEXARRAY 0
#else
#ifdef IS_GCC
#define FLEXARRAY ""
#else
#define FLEXARRAY 1 # and waste a little memory...
#endif
#endif
--
Eric Irrgang - UT Austin ITS Unix Systems - (512)475-9342