diff --git a/3rdparty/bx/include/bx/thread.h b/3rdparty/bx/include/bx/thread.h index 9e105db1422..bd74f66f4e3 100644 --- a/3rdparty/bx/include/bx/thread.h +++ b/3rdparty/bx/include/bx/thread.h @@ -8,12 +8,13 @@ #if BX_PLATFORM_POSIX # include -# if defined(BX_PLATFORM_BSD) && !defined(__GLIBC__) +# if defined(__GLIBC__) +# if !( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) ) ) +# include +# endif +# elif defined(BX_PLATFORM_BSD) # include # endif -# if defined(__GLIBC__) && !( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) ) ) -# include -# endif // defined(__GLIBC__) ... #elif BX_PLATFORM_WINRT using namespace Platform; using namespace Windows::Foundation;