diff --git a/src/file.cpp b/src/file.cpp index 5668757..6889304 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -361,10 +361,14 @@ namespace bx bool stat(const FilePath& _filePath, FileInfo& _outFileInfo) { +#if BX_CRT_NONE + BX_UNUSED(_filePath, _outFileInfo); + return false; +#else _outFileInfo.m_size = 0; _outFileInfo.m_type = FileInfo::Count; -#if BX_COMPILER_MSVC +# if BX_COMPILER_MSVC struct ::_stat64 st; int32_t result = ::_stat64(_filePath.get(), &st); @@ -381,7 +385,7 @@ namespace bx { _outFileInfo.m_type = FileInfo::Directory; } -#else +# else struct ::stat st; int32_t result = ::stat(_filePath.get(), &st); if (0 != result) @@ -397,11 +401,12 @@ namespace bx { _outFileInfo.m_type = FileInfo::Directory; } -#endif // BX_COMPILER_MSVC +# endif // BX_COMPILER_MSVC _outFileInfo.m_size = st.st_size; return true; +#endif // BX_CRT_NONE } } // namespace bx diff --git a/src/os.cpp b/src/os.cpp index 7846ecb..0000f89 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -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