Ver Fonte

Fixed build.

Бранимир Караџић há 5 anos atrás
pai
commit
5d286a29e0
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      src/thread.cpp

+ 3 - 2
src/thread.cpp

@@ -4,6 +4,7 @@
  */
  */
 
 
 #include "bx_p.h"
 #include "bx_p.h"
+#include <bx/os.h>
 #include <bx/thread.h>
 #include <bx/thread.h>
 
 
 #if BX_CONFIG_SUPPORTS_THREADING
 #if BX_CONFIG_SUPPORTS_THREADING
@@ -279,8 +280,8 @@ namespace bx
 #elif BX_PLATFORM_WINDOWS
 #elif BX_PLATFORM_WINDOWS
 		// Try to use the new thread naming API from Win10 Creators update onwards if we have it
 		// Try to use the new thread naming API from Win10 Creators update onwards if we have it
 		typedef HRESULT (WINAPI *SetThreadDescriptionProc)(HANDLE, PCWSTR);
 		typedef HRESULT (WINAPI *SetThreadDescriptionProc)(HANDLE, PCWSTR);
-		SetThreadDescriptionProc SetThreadDescription = bx::functionCast<SetThreadDescriptionProc>(
-			  bx::dlsym(GetModuleHandleA("Kernel32.dll"), "SetThreadDescription")
+		SetThreadDescriptionProc SetThreadDescription = functionCast<SetThreadDescriptionProc>(
+			  dlsym(GetModuleHandleA("Kernel32.dll"), "SetThreadDescription")
 			);
 			);
 		if (SetThreadDescription)
 		if (SetThreadDescription)
 		{
 		{