diff options
author | Sergey Fedorov <vital.had@gmail.com> | 2023-05-28 14:28:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 06:28:00 +0000 |
commit | cd781b1511d437816aac65f89646bd80dbf7c040 (patch) | |
tree | 068ef176fa47787d239d948c89a278b5d6426177 /common/threads.cpp | |
parent | 118c729680d6664f793f8d88ff0b7548137847d3 (diff) |
threads: do not use libdispatch where it is not present (#851)
Fixes: https://github.com/kcat/openal-soft/issues/850
Diffstat (limited to 'common/threads.cpp')
-rw-r--r-- | common/threads.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/threads.cpp b/common/threads.cpp index 136c4813..76a13d9d 100644 --- a/common/threads.cpp +++ b/common/threads.cpp @@ -128,7 +128,8 @@ void althrd_setname(const char *name [[maybe_unused]]) #endif } -#ifdef __APPLE__ +/* Do not try using libdispatch on systems where it is absent. */ +#if defined(__APPLE__) && ((MAC_OS_X_VERSION_MIN_REQUIRED > 1050) && !defined(__ppc__)) namespace al { |