mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
feat: add visionOS support (#323)
* feat: define BX_PLATFORM_VISIONOS * chore: add xros, xrsimulator toolchain support
This commit is contained in:
committed by
GitHub
parent
0b8bb71897
commit
f8dc7147b6
@@ -9,7 +9,8 @@
|
||||
|
||||
#if BX_CRT_NONE
|
||||
#elif BX_PLATFORM_OSX \
|
||||
|| BX_PLATFORM_IOS
|
||||
|| BX_PLATFORM_IOS \
|
||||
|| BX_PLATFORM_VISIONOS
|
||||
# include <dispatch/dispatch.h>
|
||||
#elif BX_PLATFORM_POSIX
|
||||
# include <errno.h>
|
||||
@@ -36,7 +37,8 @@ namespace bx
|
||||
#if BX_CRT_NONE
|
||||
|
||||
#elif BX_PLATFORM_OSX \
|
||||
|| BX_PLATFORM_IOS
|
||||
|| BX_PLATFORM_IOS \
|
||||
|| BX_PLATFORM_VISIONOS
|
||||
dispatch_semaphore_t m_handle;
|
||||
#elif BX_PLATFORM_POSIX
|
||||
pthread_mutex_t m_mutex;
|
||||
@@ -70,7 +72,8 @@ namespace bx
|
||||
return false;
|
||||
}
|
||||
#elif BX_PLATFORM_OSX \
|
||||
|| BX_PLATFORM_IOS
|
||||
|| BX_PLATFORM_IOS \
|
||||
|| BX_PLATFORM_VISIONOS
|
||||
|
||||
Semaphore::Semaphore()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user