From 4b1bc5bd32f3df54cb31c8546633962b9d78bb9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 22 Sep 2018 21:20:56 -0700 Subject: [PATCH] Cleanup. --- src/os.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/os.cpp b/src/os.cpp index 0000f89..b90eae4 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -8,10 +8,6 @@ #include #include -#if !BX_PLATFORM_NONE - -#include - #if BX_CRT_MSVC # include #else @@ -51,11 +47,13 @@ # elif BX_PLATFORM_LINUX \ || BX_PLATFORM_RPI \ || BX_PLATFORM_STEAMLINK +# include // fopen # include // syscall # include # elif BX_PLATFORM_OSX # include // mach_task_basic_info # elif BX_PLATFORM_HURD +# include // fopen # include // pthread_self # elif BX_PLATFORM_ANDROID # include "debug.h" // getTid is not implemented... @@ -180,7 +178,8 @@ namespace bx #elif BX_PLATFORM_EMSCRIPTEN \ || BX_PLATFORM_PS4 \ || BX_PLATFORM_XBOXONE \ - || BX_PLATFORM_WINRT + || BX_PLATFORM_WINRT \ + || BX_CRT_NONE BX_UNUSED(_filePath); return NULL; #else @@ -195,7 +194,8 @@ namespace bx #elif BX_PLATFORM_EMSCRIPTEN \ || BX_PLATFORM_PS4 \ || BX_PLATFORM_XBOXONE \ - || BX_PLATFORM_WINRT + || BX_PLATFORM_WINRT \ + || BX_CRT_NONE BX_UNUSED(_handle); #else ::dlclose(_handle); @@ -209,7 +209,8 @@ namespace bx #elif BX_PLATFORM_EMSCRIPTEN \ || BX_PLATFORM_PS4 \ || BX_PLATFORM_XBOXONE \ - || BX_PLATFORM_WINRT + || BX_PLATFORM_WINRT \ + || BX_CRT_NONE BX_UNUSED(_handle, _symbol); return NULL; #else @@ -355,5 +356,3 @@ namespace bx } } // namespace bx - -#endif // !BX_PLATFORM_NONE