Browse Source

Fix compile issue for iOS (#717)

rcstuber 11 tháng trước cách đây
mục cha
commit
283f4725b0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/std/thread.c

+ 1 - 1
src/std/thread.c

@@ -970,7 +970,7 @@ HL_PRIM void hl_thread_set_name( hl_thread *t, const char *name ) {
 	// nothing
 #elif defined(HL_WIN)
 	SetThreadName((DWORD)(int_val)t,name);
-#elif defined(HL_MAC)
+#elif defined(HL_MAC) || defined(HL_IOS)
 	// pthread_setname_np only possible for current thread
 #else
 	pthread_setname_np((pthread_t)t,name);