only use <atomic> header if C++11 support is available

This commit is contained in:
Guenter Obiltschnig 2017-01-13 15:41:50 +01:00
parent f216c798bf
commit 28de783c96

View File

@ -26,7 +26,9 @@
#elif POCO_OS == POCO_OS_MAC_OS_X #elif POCO_OS == POCO_OS_MAC_OS_X
#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 #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
#ifndef POCO_HAVE_STD_ATOMICS #ifndef POCO_HAVE_STD_ATOMICS
#define POCO_HAVE_STD_ATOMICS #if __cplusplus >= 201103L
#define POCO_HAVE_STD_ATOMICS
#endif
#endif #endif
#else #else
#include <libkern/OSAtomic.h> #include <libkern/OSAtomic.h>