Branimir Karadzic 12 лет назад
Родитель
Сommit
2330faed36
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      include/bx/os.h

+ 5 - 2
include/bx/os.h

@@ -12,19 +12,22 @@
 #	include <windows.h>
 #	include <windows.h>
 #elif BX_PLATFORM_NACL || BX_PLATFORM_ANDROID || BX_PLATFORM_LINUX || BX_PLATFORM_OSX || BX_PLATFORM_IOS
 #elif BX_PLATFORM_NACL || BX_PLATFORM_ANDROID || BX_PLATFORM_LINUX || BX_PLATFORM_OSX || BX_PLATFORM_IOS
 #	include <sched.h> // sched_yield
 #	include <sched.h> // sched_yield
-#	if BX_PLATFORM_OSX || BX_PLATFORM_NACL
+#	if BX_PLATFORM_IOS || BX_PLATFORM_OSX || BX_PLATFORM_NACL
 #		include <pthread.h> // mach_port_t
 #		include <pthread.h> // mach_port_t
-#	endif // BX_PLATFORM_OSX || BX_PLATFORM_NACL
+#	endif // BX_PLATFORM_IOS || BX_PLATFORM_OSX || BX_PLATFORM_NACL
+
 #	if BX_PLATFORM_NACL
 #	if BX_PLATFORM_NACL
 #		include <sys/nacl_syscalls.h> // nanosleep
 #		include <sys/nacl_syscalls.h> // nanosleep
 #	else
 #	else
 #		include <time.h> // nanosleep
 #		include <time.h> // nanosleep
 #		include <dlfcn.h> // dlopen, dlclose, dlsym
 #		include <dlfcn.h> // dlopen, dlclose, dlsym
 #	endif // BX_PLATFORM_NACL
 #	endif // BX_PLATFORM_NACL
+
 #	if BX_PLATFORM_LINUX
 #	if BX_PLATFORM_LINUX
 #		include <unistd.h> // syscall
 #		include <unistd.h> // syscall
 #		include <sys/syscall.h>
 #		include <sys/syscall.h>
 #	endif // BX_PLATFORM_LINUX
 #	endif // BX_PLATFORM_LINUX
+
 #	if BX_PLATFORM_ANDROID
 #	if BX_PLATFORM_ANDROID
 #		include "debug.h" // getTid is not implemented...
 #		include "debug.h" // getTid is not implemented...
 #	endif // BX_PLATFORM_ANDROID
 #	endif // BX_PLATFORM_ANDROID