瀏覽代碼

Fix for emscripten build.

woollybah 10 年之前
父節點
當前提交
accf94f9bc
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      blitz.mod/blitz_thread.c
  2. 1 1
      glmax2d.mod/glmax2d.bmx

+ 4 - 0
blitz.mod/blitz_thread.c

@@ -3,6 +3,8 @@
 
 //#define DEBUG_THREADS
 
+#ifndef __EMSCRIPTEN__
+
 //***** Common *****
 
 int _bbNeedsLock;
@@ -444,3 +446,5 @@ int bbAtomicAdd( volatile int *p,int incr ){
 }
 
 #endif
+
+#endif // __EMSCRIPTEN__

+ 1 - 1
glmax2d.mod/glmax2d.bmx

@@ -33,7 +33,7 @@ ModuleInfo "History: Ripped out a bunch of dead code"
 ModuleInfo "History: 1.05 Release"
 ModuleInfo "History: Added checks to prevent invalid textures deletes"
 
-?Not linuxarm
+?Not opengles
 
 Import BRL.Max2D
 Import BRL.GLGraphics