Hi Pelle,
is there a preproc symbol to know if Pelles Extensions are in use?
ej: cc /Zx somefile.c
and any way to know current C standard used with /Ze option?
ej: cc /Ze /std=C11 somefile.c
vs cc /Ze /std=C99 somefile.c
maybe an __has_feature() builtin? ;-)
thanks.
Found symbol to standard identification : __POCC_STDC_VERSION__
:)
You might want to check the menu: Help -> Contents. Unlike many other applications, Pelles has very detailed and useful help section, including descriptions of basically all c functions. It took me a while to figure that out due to previous bad experiences with the windows help.
When the /Ze option is used (checked with _MSC_EXTENSIONS) all __STDC_* macros are not defined. I added __POCC_STDC_VERSION__ for internal use - which is always defined. It's currently undocumented, but I guess little will change about it in the future so I may as well document it.
I always assumed the few people using the extensions would know so anyway, but the /Zx option will get it's own symbol in RC5:
__POCC__EXTENSIONS=1
Thanks !!
this will be great for generic include files.
:)