Ticket #15580 (closed enhancement: fixed)
wxGTK: 'MAC_OS_X_VERSION_MAX_ALLOWED' is not defined, evaluates to 0
|Reported by:||mojca||Owned by:||vadz|
When compiling wxWidgets 3.0.0-rc1 against wxGTK on Mac OS X I get a lot of warnings like the following:
In file included from ../include/wx/string.h:45: ../include/wx/wxcrtbase.h:569:39: warning: 'MAC_OS_X_VERSION_MAX_ALLOWED' is not defined, evaluates to 0 [-Wundef] #if !defined(__WXOSX_IPHONE__) && MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2
I didn't dive deep into the code and I'm not sure what the consequences are, but the following part in wxcrtbase.h and possibly other files is a bit problematic:
#ifdef __DARWIN__ #if !defined(__WXOSX_IPHONE__) && MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 #define wxNEED_WX_MBSTOWCS #endif #endif
I don't know whether wxNEED_WX_MBSTOWCS is needed in the GTK-based build on Mac. In case it is, the second if should be different. In case it isn't, the first ifdef should be testing for __WXMAC__ rather than __DARWIN__.
I also find it weird to see references to version 10.2 given that wxWidgets now doesn't work on anything older than 10.5 anyway.
Complete build log can be found here (is case anyone is interested): https://build.macports.org/builders/buildports-lion-x86_64/builds/15069