diff --git a/include/bx/os.h b/include/bx/os.h index 4fcd2c0..6fd9fef 100644 --- a/include/bx/os.h +++ b/include/bx/os.h @@ -11,17 +11,22 @@ #if BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT # include -#elif BX_PLATFORM_ANDROID \ +#elif BX_PLATFORM_ANDROID \ || BX_PLATFORM_EMSCRIPTEN \ || BX_PLATFORM_FREEBSD \ || BX_PLATFORM_IOS \ || BX_PLATFORM_LINUX \ || BX_PLATFORM_NACL \ || BX_PLATFORM_OSX \ + || BX_PLATFORM_PS4 \ || BX_PLATFORM_RPI # include // sched_yield -# if BX_PLATFORM_FREEBSD || BX_PLATFORM_IOS || BX_PLATFORM_NACL || BX_PLATFORM_OSX +# if BX_PLATFORM_FREEBSD \ + || BX_PLATFORM_IOS \ + || BX_PLATFORM_NACL \ + || BX_PLATFORM_OSX \ + || BX_PLATFORM_PS4 # include // mach_port_t # endif // BX_PLATFORM_IOS || BX_PLATFORM_OSX || BX_PLATFORM_NACL @@ -29,7 +34,9 @@ # include // nanosleep # else # include // nanosleep -# include // dlopen, dlclose, dlsym +# if !BX_PLATFORM_PS4 +# include // dlopen, dlclose, dlsym +# endif // !BX_PLATFORM_PS4 # endif // BX_PLATFORM_NACL # if BX_PLATFORM_LINUX || BX_PLATFORM_RPI @@ -107,7 +114,10 @@ namespace bx { #if BX_PLATFORM_WINDOWS return (void*)::LoadLibraryA(_filePath); -#elif BX_PLATFORM_NACL || BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_WINRT +#elif BX_PLATFORM_EMSCRIPTEN \ + || BX_PLATFORM_NACL \ + || BX_PLATFORM_PS4 \ + || BX_PLATFORM_WINRT BX_UNUSED(_filePath); return NULL; #else @@ -119,7 +129,10 @@ namespace bx { #if BX_PLATFORM_WINDOWS ::FreeLibrary( (HMODULE)_handle); -#elif BX_PLATFORM_NACL || BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_WINRT +#elif BX_PLATFORM_EMSCRIPTEN \ + || BX_PLATFORM_NACL \ + || BX_PLATFORM_PS4 \ + || BX_PLATFORM_WINRT BX_UNUSED(_handle); #else ::dlclose(_handle); @@ -130,7 +143,10 @@ namespace bx { #if BX_PLATFORM_WINDOWS return (void*)::GetProcAddress( (HMODULE)_handle, _symbol); -#elif BX_PLATFORM_NACL || BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_WINRT +#elif BX_PLATFORM_EMSCRIPTEN \ + || BX_PLATFORM_NACL \ + || BX_PLATFORM_PS4 \ + || BX_PLATFORM_WINRT BX_UNUSED(_handle, _symbol); return NULL; #else @@ -142,7 +158,8 @@ namespace bx { #if BX_PLATFORM_WINDOWS ::SetEnvironmentVariableA(_name, _value); -#elif BX_PLATFORM_WINRT +#elif BX_PLATFORM_PS4 \ + || BX_PLATFORM_WINRT BX_UNUSED(_name, _value); #else ::setenv(_name, _value, 1); @@ -153,7 +170,8 @@ namespace bx { #if BX_PLATFORM_WINDOWS ::SetEnvironmentVariableA(_name, NULL); -#elif BX_PLATFORM_WINRT +#elif BX_PLATFORM_PS4 \ + || BX_PLATFORM_WINRT BX_UNUSED(_name); #else ::unsetenv(_name); @@ -162,7 +180,8 @@ namespace bx inline int chdir(const char* _path) { -#if BX_PLATFORM_WINRT +#if BX_PLATFORM_PS4 \ + || BX_PLATFORM_WINRT BX_UNUSED(_path); return -1; #elif BX_COMPILER_MSVC_COMPATIBLE @@ -174,7 +193,8 @@ namespace bx inline char* pwd(char* _buffer, uint32_t _size) { -#if BX_PLATFORM_WINRT +#if BX_PLATFORM_PS4 \ + || BX_PLATFORM_WINRT BX_UNUSED(_buffer, _size); return NULL; #elif BX_COMPILER_MSVC_COMPATIBLE diff --git a/include/bx/platform.h b/include/bx/platform.h index 08b31bf..d2684b0 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -200,6 +200,7 @@ || BX_PLATFORM_NACL \ || BX_PLATFORM_OSX \ || BX_PLATFORM_QNX \ + || BX_PLATFORM_PS4 \ || BX_PLATFORM_RPI \ ) diff --git a/include/compat/freebsd/signal.h b/include/compat/freebsd/signal.h new file mode 100644 index 0000000..fd7d90f --- /dev/null +++ b/include/compat/freebsd/signal.h @@ -0,0 +1 @@ +#include