1
0
mirror of https://github.com/pocoproject/poco.git synced 2025-04-02 09:49:48 +02:00

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

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