瀏覽代碼

Compile AngelScript without thread support on iOS, as there will be only one Urho3D context running simultaneously.

Lasse Öörni 13 年之前
父節點
當前提交
65010d3169
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      ThirdParty/AngelScript/source/as_config.h

+ 8 - 2
ThirdParty/AngelScript/source/as_config.h

@@ -635,8 +635,14 @@
 			// Unknown CPU type
 			#define AS_MAX_PORTABILITY
 		#endif
-		#define AS_POSIX_THREADS
- 
+		
+		// Urho3D: compile AngelScript without threading on iOS, as there will only be a single execution context
+		#ifndef AS_IPHONE
+			#define AS_POSIX_THREADS
+		#else
+			#define AS_NO_ATOMIC
+		#endif
+		
 	// Windows
 	#elif defined(WIN32) || defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__)
 		// On Windows the simple classes are returned in the EAX:EDX registers