[Bug c++/57025] Solaris g++ defines __STDC_VERSION__=199901L

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Apr 21 15:09:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57025

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-04-21 15:09:48 UTC ---
Those libraries are incompatible with C++ then, the C++ standard allows
__STDC_VERSION to be defined by a C++ compiler.

The libraries could be fixed by also checking !defined(__cplusplus), or you
could 
#define restrict __restrict
before including them.



More information about the Gcc-bugs mailing list