From 401497510f90af3c12280dc39f9d9e3db7eb2f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 8 Apr 2016 17:30:09 -0700 Subject: [PATCH] Cleanup. --- include/bx/debug.h | 4 ++-- include/bx/thread.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/bx/debug.h b/include/bx/debug.h index fc78b7b..1154ab7 100644 --- a/include/bx/debug.h +++ b/include/bx/debug.h @@ -10,7 +10,7 @@ #if BX_PLATFORM_ANDROID # include -#elif BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT || BX_PLATFORM_XBOX360 +#elif BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT || BX_PLATFORM_XBOX360 || BX_PLATFORM_XBOXONE extern "C" __declspec(dllimport) void __stdcall OutputDebugStringA(const char* _str); #elif BX_PLATFORM_IOS || BX_PLATFORM_OSX # if defined(__OBJC__) @@ -55,7 +55,7 @@ namespace bx # define BX_ANDROID_LOG_TAG "" # endif // BX_ANDROID_LOG_TAG __android_log_write(ANDROID_LOG_DEBUG, BX_ANDROID_LOG_TAG, _out); -#elif BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT || BX_PLATFORM_XBOX360 +#elif BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT || BX_PLATFORM_XBOX360 || BX_PLATFORM_XBOXONE OutputDebugStringA(_out); #elif BX_PLATFORM_IOS || BX_PLATFORM_OSX # if defined(__OBJC__) diff --git a/include/bx/thread.h b/include/bx/thread.h index 5e3a920..0cdc1f4 100644 --- a/include/bx/thread.h +++ b/include/bx/thread.h @@ -65,7 +65,7 @@ namespace bx m_stackSize = _stackSize; m_running = true; -#if BX_PLATFORM_WINDOWS || BX_PLATFORM_XBOX360 +#if BX_PLATFORM_WINDOWS || BX_PLATFORM_XBOX360 || BX_PLATFORM_XBOXONE m_handle = ::CreateThread(NULL , m_stackSize , (LPTHREAD_START_ROUTINE)threadFunc @@ -103,6 +103,8 @@ namespace bx result = pthread_create(&m_handle, &attr, &threadFunc, this); BX_CHECK(0 == result, "pthread_attr_setschedparam failed! %d", result); +#else +# error "Not implemented!" #endif // BX_PLATFORM_ m_sem.wait();