Commit 497d0fd2 authored by Alexander Alekhin's avatar Alexander Alekhin

build: OSSpinLock deprecation warning

parent 21167b1b
......@@ -908,6 +908,11 @@ int _interlockedExchangeAdd(int* addr, int delta)
#elif defined __APPLE__
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <libkern/OSAtomic.h>
struct Mutex::Impl
......@@ -923,6 +928,10 @@ struct Mutex::Impl
int refcount;
};
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
#elif defined __linux__ && !defined ANDROID && !defined __LINUXTHREADS_OLD__
struct Mutex::Impl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment