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