Browse Source

Merge branch 'master' of github.com:bkaradzic/bx

Branimir Karadžić 9 years ago
parent
commit
c2367da896
1 changed files with 10 additions and 0 deletions
  1. 10 0
      include/bx/mutex.h

+ 10 - 0
include/bx/mutex.h

@@ -7,11 +7,21 @@
 #define BX_MUTEX_H_HEADER_GUARD
 
 #include "bx.h"
+#include "cpu.h"
 #include "os.h"
 #include "sem.h"
 
 #if BX_CONFIG_SUPPORTS_THREADING
 
+#if 0 \
+	|| BX_PLATFORM_ANDROID \
+	|| BX_PLATFORM_LINUX \
+	|| BX_PLATFORM_NACL \
+	|| BX_PLATFORM_IOS \
+	|| BX_PLATFORM_OSX
+#	include <pthread.h>
+#endif //
+
 namespace bx
 {
 	///