fixed GH #1487: OSAtomicDecrement32 & OSAtomicIncrement32 deprecated in macOS 10.12

This commit is contained in:
Günter Obiltschnig 2017-11-08 12:01:36 +01:00
parent 2afd72192f
commit 6083ecd11a

View File

@ -23,10 +23,12 @@
#include "Poco/UnWindows.h"
#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
#if __cplusplus >= 201103L
#if __cplusplus >= 201103L
#ifndef POCO_HAVE_STD_ATOMICS
#define POCO_HAVE_STD_ATOMICS
#endif
#else
#include <libkern/OSAtomic.h>
#endif
#else
#include <libkern/OSAtomic.h>