diff options
author | Josh de Kock <josh@itanimul.li> | 2016-05-17 08:58:02 +0100 |
---|---|---|
committer | Josh de Kock <josh@itanimul.li> | 2016-05-17 08:58:02 +0100 |
commit | ce438a41ffead7bb003a92d2beead81d6cf63c14 (patch) | |
tree | 75fadd04c76750d7fbf62a40d0cc83f2fb6df026 | |
parent | 79478b79fa2b1612b23a1f7ca535e9675ce8fbff (diff) | |
download | jack1-ce438a41ffead7bb003a92d2beead81d6cf63c14.tar.gz |
pThreadUtilities.h: add version checking for inclusion of MacTypes.h header
-rw-r--r-- | config/os/macosx/pThreadUtilities.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/os/macosx/pThreadUtilities.h b/config/os/macosx/pThreadUtilities.h index 82f5baa..20cfe8a 100644 --- a/config/os/macosx/pThreadUtilities.h +++ b/config/os/macosx/pThreadUtilities.h @@ -66,7 +66,6 @@ #define __PTHREADUTILITIES_H__ #import "pthread.h" -#import <MacTypes.h> #define THREAD_SET_PRIORITY 0 #define THREAD_SCHEDULED_PRIORITY 1 @@ -75,6 +74,13 @@ #include <mach/thread_policy.h> #include <mach/thread_act.h> #include <CoreAudio/HostTime.h> +#import <Availability.h> + +#if defined(MAC_OS_X_VERSION_10_7) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 +#import <MacTypes.h> +#else +#import <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h> +#endif static inline UInt32 _getThreadPriority (pthread_t inThread, int inWhichPriority) |