Fix clang building the std headers.
This commit is contained in:
parent
d68955c539
commit
f811d11863
|
@ -14,7 +14,7 @@
|
|||
// GCC 4.4 provides <condition_variable>
|
||||
#include <condition_variable>
|
||||
|
||||
#elif __has_include(<condition_variable>)
|
||||
#elif __has_include(<condition_variable>) && !ANDROID
|
||||
|
||||
// clang and libc++ provide <condition_variable> on OSX. However, the version
|
||||
// of libc++ bundled with OSX 10.7 and 10.8 is buggy: it uses _ as a variable.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#if GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ && !ANDROID
|
||||
// GCC 4.4 provides <mutex>
|
||||
#include <mutex>
|
||||
#elif __has_include(<mutex>)
|
||||
#elif __has_include(<mutex>) && !ANDROID
|
||||
// Clang + libc++
|
||||
#include <mutex>
|
||||
#else
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#define _GLIBCXX_USE_SCHED_YIELD
|
||||
#endif
|
||||
#include <thread>
|
||||
#elif __has_include(<thread>)
|
||||
#elif __has_include(<thread>) && !ANDROID
|
||||
// Clang + libc++
|
||||
#include <thread>
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue