mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
bx: refactor #ifdefs
Fix potential compilation error by ensuring __GLIBC__ is only evaluated when actually defined. When __GLIBC__ is defined, we do not need any additional headers on BSD platforms (hence why using #elif).
This commit is contained in:
parent
ad91a1391c
commit
423097c40f
9
3rdparty/bx/include/bx/thread.h
vendored
9
3rdparty/bx/include/bx/thread.h
vendored
@ -8,12 +8,13 @@
|
||||
|
||||
#if BX_PLATFORM_POSIX
|
||||
# include <pthread.h>
|
||||
# if defined(BX_PLATFORM_BSD) && !defined(__GLIBC__)
|
||||
# if defined(__GLIBC__)
|
||||
# if !( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) ) )
|
||||
# include <sys/prctl.h>
|
||||
# endif
|
||||
# elif defined(BX_PLATFORM_BSD)
|
||||
# include <pthread_np.h>
|
||||
# endif
|
||||
# if defined(__GLIBC__) && !( (__GLIBC__ > 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) ) )
|
||||
# include <sys/prctl.h>
|
||||
# endif // defined(__GLIBC__) ...
|
||||
#elif BX_PLATFORM_WINRT
|
||||
using namespace Platform;
|
||||
using namespace Windows::Foundation;
|
||||
|
Loading…
Reference in New Issue
Block a user