mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Fix clang building the std headers.
This commit is contained in:
@ -14,7 +14,7 @@
|
|||||||
// GCC 4.4 provides <condition_variable>
|
// GCC 4.4 provides <condition_variable>
|
||||||
#include <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
|
// 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.
|
// 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
|
#if GCC_VERSION >= GCC_VER(4,4,0) && __GXX_EXPERIMENTAL_CXX0X__ && !ANDROID
|
||||||
// GCC 4.4 provides <mutex>
|
// GCC 4.4 provides <mutex>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#elif __has_include(<mutex>)
|
#elif __has_include(<mutex>) && !ANDROID
|
||||||
// Clang + libc++
|
// Clang + libc++
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#else
|
#else
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#define _GLIBCXX_USE_SCHED_YIELD
|
#define _GLIBCXX_USE_SCHED_YIELD
|
||||||
#endif
|
#endif
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#elif __has_include(<thread>)
|
#elif __has_include(<thread>) && !ANDROID
|
||||||
// Clang + libc++
|
// Clang + libc++
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user