Check that __cplusplus is defined before checking its value.

Avoids harmless in this case warning about __cplusplus being undefined in
comparison.
This commit is contained in:
Vadim Zeitlin
2015-06-14 15:55:08 +02:00
parent 5ac3c9ac7a
commit 49fb8c25f5

View File

@@ -361,7 +361,7 @@ typedef short int WXTYPE;
Check for C++11 compilers, it is important to do it before the
__has_include() checks because of g++ 4.9.2+ complications below.
*/
#if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(10)
#if (defined(__cplusplus) && __cplusplus >= 201103L) || wxCHECK_VISUALC_VERSION(10)
#ifndef HAVE_TYPE_TRAITS
#define HAVE_TYPE_TRAITS
#endif