Remove unsupported platforms.

This commit is contained in:
Branimir Karadžić
2023-11-03 21:41:32 -07:00
parent 610b8e4df1
commit a9ebe59e14
4 changed files with 5 additions and 37 deletions

View File

@@ -15,8 +15,6 @@
#if BX_CRT_NONE
# include "crt0.h"
#elif BX_PLATFORM_ANDROID \
|| BX_PLATFORM_BSD \
|| BX_PLATFORM_HAIKU \
|| BX_PLATFORM_LINUX \
|| BX_PLATFORM_IOS \
|| BX_PLATFORM_OSX \
@@ -24,9 +22,6 @@
|| BX_PLATFORM_RPI \
|| BX_PLATFORM_NX
# include <pthread.h>
# if BX_PLATFORM_BSD
# include <pthread_np.h>
# endif // BX_PLATFORM_BSD
# if BX_PLATFORM_LINUX && (BX_CRT_GLIBC < 21200)
# include <sys/prctl.h>
# endif // BX_PLATFORM_
@@ -250,16 +245,10 @@ namespace bx
#elif BX_PLATFORM_OSX \
|| BX_PLATFORM_IOS
pthread_setname_np(_name);
#elif (BX_CRT_GLIBC >= 21200) && ! BX_PLATFORM_HURD
#elif (BX_CRT_GLIBC >= 21200)
pthread_setname_np(ti->m_handle, _name);
#elif BX_PLATFORM_LINUX
prctl(PR_SET_NAME,_name, 0, 0, 0);
#elif BX_PLATFORM_BSD
# if defined(__NetBSD__)
pthread_setname_np(ti->m_handle, "%s", (void*)_name);
# else
pthread_set_name_np(ti->m_handle, _name);
# endif // defined(__NetBSD__)
#elif BX_PLATFORM_WINDOWS
// Try to use the new thread naming API from Win10 Creators update onwards if we have it
typedef HRESULT (WINAPI *SetThreadDescriptionProc)(HANDLE, PCWSTR);