Don't support getenv/setenv on Emscripten platform

This commit is contained in:
Vladimir Vukicevic
2019-06-13 12:47:21 -07:00
committed by Бранимир Караџић
parent b86f343f30
commit 7883a57e8a

View File

@@ -237,9 +237,10 @@ namespace bx
bool result = len != 0 && len < *_inOutSize; bool result = len != 0 && len < *_inOutSize;
*_inOutSize = len; *_inOutSize = len;
return result; return result;
#elif BX_PLATFORM_PS4 \ #elif BX_PLATFORM_EMSCRIPTEN \
|| BX_PLATFORM_XBOXONE \ || BX_PLATFORM_PS4 \
|| BX_PLATFORM_WINRT \ || BX_PLATFORM_XBOXONE \
|| BX_PLATFORM_WINRT \
|| BX_CRT_NONE || BX_CRT_NONE
BX_UNUSED(name, _out, _inOutSize); BX_UNUSED(name, _out, _inOutSize);
return false; return false;
@@ -279,9 +280,10 @@ namespace bx
#if BX_PLATFORM_WINDOWS #if BX_PLATFORM_WINDOWS
::SetEnvironmentVariableA(name, value); ::SetEnvironmentVariableA(name, value);
#elif BX_PLATFORM_PS4 \ #elif BX_PLATFORM_EMSCRIPTEN \
|| BX_PLATFORM_XBOXONE \ || BX_PLATFORM_PS4 \
|| BX_PLATFORM_WINRT \ || BX_PLATFORM_XBOXONE \
|| BX_PLATFORM_WINRT \
|| BX_CRT_NONE || BX_CRT_NONE
BX_UNUSED(name, value); BX_UNUSED(name, value);
#else #else