1 | diff --git a/Foundation/include/Poco/AtomicCounter.h b/Foundation/include/Poco/AtomicCounter.h |
---|
2 | index 52e8a07c2..4c7c7884f 100644 |
---|
3 | --- a/Foundation/include/Poco/AtomicCounter.h |
---|
4 | +++ b/Foundation/include/Poco/AtomicCounter.h |
---|
5 | @@ -23,10 +23,12 @@ |
---|
6 | #include "Poco/UnWindows.h" |
---|
7 | #elif POCO_OS == POCO_OS_MAC_OS_X |
---|
8 | #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 || __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000 || __TV_OS_VERSION_MAX_ALLOWED >= 100000 || __WATCH_OS_VERSION_MAX_ALLOWED >= 30000 |
---|
9 | - #ifndef POCO_HAVE_STD_ATOMICS |
---|
10 | - #if __cplusplus >= 201103L |
---|
11 | + #if __cplusplus >= 201103L |
---|
12 | + #ifndef POCO_HAVE_STD_ATOMICS |
---|
13 | #define POCO_HAVE_STD_ATOMICS |
---|
14 | #endif |
---|
15 | + #else |
---|
16 | + #include <libkern/OSAtomic.h> |
---|
17 | #endif |
---|
18 | #else |
---|
19 | #include <libkern/OSAtomic.h> |
---|