[Interest] Qt4.8.5 redefining MAC_OS_X_VERSION_MIN_REQUIRED

Cotton Seed cotton at alum.mit.edu
Sun Dec 22 18:05:35 CET 2013


I'm trying to build an application which uses Qt and, elsewhere, requires
OSX features from 10.7 and beyond.  I'm compiling with
-mmacosx-version-min=10.7.  However, qglobal.h redefines
MAC_OS_X_VERSION_MIN_REQUIRED:

#ifdef Q_OS_DARWIN
#  ifdef MAC_OS_X_VERSION_MIN_REQUIRED
#    undef MAC_OS_X_VERSION_MIN_REQUIRED
#  endif
#  define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_4
#  include <AvailabilityMacros.h>
...

and this wreaks havoc elsewhere in the application.  Can anyone explain how
this is supposed to work?  How does one compile an application on OSX 4.8.5
for 4.7+?  Thanks!

Best regards,
Cotton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131222/a7d872f0/attachment.html>


More information about the Interest mailing list