From 92387c686bbfd22f5f18ceb288cbcb1326d7f4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 14 Jul 2016 09:31:58 -0700 Subject: [PATCH] Cleanup. --- include/bx/thread.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/bx/thread.h b/include/bx/thread.h index d7c951b..2d92345 100644 --- a/include/bx/thread.h +++ b/include/bx/thread.h @@ -11,14 +11,14 @@ # if defined(__FreeBSD__) # include # endif -# if defined(__linux__) && (BX_CRT_GLIBC < 21200) +# if BX_PLATFORM_LINUX && (BX_CRT_GLIBC < 21200) # include -# endif +# endif // BX_PLATFORM_ #elif BX_PLATFORM_WINRT using namespace Platform; using namespace Windows::Foundation; using namespace Windows::System::Threading; -#endif +#endif // BX_PLATFORM_ #include "sem.h" @@ -162,11 +162,11 @@ namespace bx #elif BX_PLATFORM_LINUX prctl(PR_SET_NAME,_name, 0, 0, 0); #elif BX_PLATFORM_BSD -#ifdef __NetBSD__ - pthread_setname_np(m_handle, "%s", (void *)_name); -#else +# ifdef __NetBSD__ + pthread_setname_np(m_handle, "%s", (void*)_name); +# else pthread_set_name_np(m_handle, _name); -#endif +# endif // __NetBSD__ #elif BX_PLATFORM_WINDOWS && BX_COMPILER_MSVC # pragma pack(push, 8) struct ThreadName