fix conditional macros used to set include file names for Mavericks+later vs. earlier OS X.

Apple's doc suggests using numerical values (e.g. 1090) rather than MAC_OS_X_VERSION_10_N because the symbol
may not be defined on earlier versions, causing the macro to work in odd ways. This is indeed what was
happening, so MAC_OS_X_VERSION_10_9 has been replaced with 1090 to allow building on earlier OS X systems.
This commit is contained in:
Paul Davis 2014-09-03 09:34:39 -04:00
parent 0160a96ee0
commit a791cc5bf3
2 changed files with 5 additions and 4 deletions

View file

@ -65,10 +65,10 @@
// Include the regular ConditionalMacros.h too, since it has useful stuff that
// TargetConditionals.h lacks for some reason.
#if CoreAudio_Use_Framework_Includes && !(MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_9)
#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/ConditionalMacros.h>
#if CoreAudio_Use_Framework_Includes && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)
#include "ConditionalMa243cros.h"
#else
#include "ConditionalMacros.h"
#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/ConditionalMacros.h>
#endif
#endif