diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-14 12:44:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-14 12:44:51 -0500 |
commit | bd6a7118483fe92aa25589edda6f22a2e783b442 (patch) | |
tree | 0de9becc7b0f457b27e499d880b63fafd1e5591f /config/os/macosx/pThreadUtilities.h | |
parent | 8f4a897dfbdc24195aad6c31e9714737210beeae (diff) | |
parent | ce438a41ffead7bb003a92d2beead81d6cf63c14 (diff) | |
download | jack1-bd6a7118483fe92aa25589edda6f22a2e783b442.tar.gz |
Merge pull request #42 from joshdekock/osx-audiounits-update
Update OS X CoreAudio AudioUnits API usage.
Diffstat (limited to 'config/os/macosx/pThreadUtilities.h')
-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 a8ed705..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 <CoreServices/../Frameworks/CarbonCore.framework/Headers/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) |