Mail Archives: djgpp-workers/2000/04/24/10:43:45
> I wonder whether we want some preprocessing symbol around the
> C99-specific stuff, in case someone would use an older compiler
> version.
If we do this, (1) it should be limited to those things that will
break without the new compiler. Def'ing out a #define like EILSEQ
doesn't seem like a win to me, and (2) should we create a
libc/features.h file that has the complex detection, and #defines
simple macros like __C99_COMPILER or something like that?
I've also seen platforms that define a macro such that you can do this:
#if GCC_VERSION_MINIMUM(2,95,2)
...
#endif
I don't recall the specifics.
> For example, we could use "#if __STDC_VERSION__ >= 199901", or look at
> __GNUC__ and __GNUC_MINOR__ (or both). See my other mail about a
> specific suggestion.
Make sure your logic will work for GNUC==3 and GNUC_MINOR==0
- Raw text -