This commit is contained in:
Branimir Karadžić
2018-02-17 18:38:38 -08:00
parent 40092c8f26
commit 5584f41b53
2 changed files with 20 additions and 9 deletions

View File

@@ -70,7 +70,8 @@ namespace bx
#if BX_PLATFORM_WINDOWS
::Sleep(_ms);
#elif BX_PLATFORM_XBOXONE \
|| BX_PLATFORM_WINRT
|| BX_PLATFORM_WINRT \
|| BX_CRT_NONE
BX_UNUSED(_ms);
debugOutput("sleep is not implemented"); debugBreak();
#else
@@ -85,7 +86,8 @@ namespace bx
#if BX_PLATFORM_WINDOWS
::SwitchToThread();
#elif BX_PLATFORM_XBOXONE \
|| BX_PLATFORM_WINRT
|| BX_PLATFORM_WINRT \
|| BX_CRT_NONE
debugOutput("yield is not implemented"); debugBreak();
#else
::sched_yield();
@@ -224,7 +226,8 @@ namespace bx
return result;
#elif BX_PLATFORM_PS4 \
|| BX_PLATFORM_XBOXONE \
|| BX_PLATFORM_WINRT
|| BX_PLATFORM_WINRT \
|| BX_CRT_NONE
BX_UNUSED(_name, _out, _inOutSize);
return false;
#else
@@ -253,7 +256,8 @@ namespace bx
::SetEnvironmentVariableA(_name, _value);
#elif BX_PLATFORM_PS4 \
|| BX_PLATFORM_XBOXONE \
|| BX_PLATFORM_WINRT
|| BX_PLATFORM_WINRT \
|| BX_CRT_NONE
BX_UNUSED(_name, _value);
#else
::setenv(_name, _value, 1);
@@ -266,7 +270,8 @@ namespace bx
::SetEnvironmentVariableA(_name, NULL);
#elif BX_PLATFORM_PS4 \
|| BX_PLATFORM_XBOXONE \
|| BX_PLATFORM_WINRT
|| BX_PLATFORM_WINRT \
|| BX_CRT_NONE
BX_UNUSED(_name);
#else
::unsetenv(_name);
@@ -277,7 +282,8 @@ namespace bx
{
#if BX_PLATFORM_PS4 \
|| BX_PLATFORM_XBOXONE \
|| BX_PLATFORM_WINRT
|| BX_PLATFORM_WINRT \
|| BX_CRT_NONE
BX_UNUSED(_path);
return -1;
#elif BX_CRT_MSVC