This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Apr 4 16:54, Denis Excoffier wrote:-#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__>= 199901L) +#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__>= 199901L) || (__cplusplus>= 201103L)
How is that supposed to work?
$ gcc -xc++ -std=c++98 -dM -E -< /dev/null | grep cplus #define __cplusplus 1
$ gcc -xc++ -std=c++0x -dM -E -< /dev/null | grep cplus #define __cplusplus 1
Actually I'm wondering if that's not a bug in gcc:
G++ now sets the predefined macro __cplusplus to the correct value, 199711L for C++98/03, and 201103L for C++11.
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |