From ce438a41ffead7bb003a92d2beead81d6cf63c14 Mon Sep 17 00:00:00 2001 From: Josh de Kock Date: Tue, 17 May 2016 08:58:02 +0100 Subject: pThreadUtilities.h: add version checking for inclusion of MacTypes.h header --- config/os/macosx/pThreadUtilities.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 #define THREAD_SET_PRIORITY 0 #define THREAD_SCHEDULED_PRIORITY 1 @@ -75,6 +74,13 @@ #include #include #include +#import + +#if defined(MAC_OS_X_VERSION_10_7) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 +#import +#else +#import +#endif static inline UInt32 _getThreadPriority (pthread_t inThread, int inWhichPriority) -- cgit v1.2.1