diff --git a/include/wx/osx/config_xcode.h b/include/wx/osx/config_xcode.h index 510eb9f0b4..31f726e8cd 100644 --- a/include/wx/osx/config_xcode.h +++ b/include/wx/osx/config_xcode.h @@ -28,10 +28,12 @@ #define HAVE_STD_WSTRING 1 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 #if __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 2 ) -#define HAVE_TR1_UNORDERED_MAP 1 -#define HAVE_TR1_UNORDERED_SET 1 -#define HAVE_TR1_TYPE_TRAITS 1 -#define HAVE_GCC_ATOMIC_BUILTINS 1 + #if !defined(__has_include) + #define HAVE_TR1_UNORDERED_MAP 1 + #define HAVE_TR1_UNORDERED_SET 1 + #define HAVE_TR1_TYPE_TRAITS 1 + #endif + #define HAVE_GCC_ATOMIC_BUILTINS 1 #endif #endif #define HAVE_VISIBILITY 1