From 49fb8c25f5f98964032d31720b3a030249b16822 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 14 Jun 2015 15:55:08 +0200 Subject: [PATCH] Check that __cplusplus is defined before checking its value. Avoids harmless in this case warning about __cplusplus being undefined in comparison. --- include/wx/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index 7152b9dc5f..cd937a1afb 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -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