Forráskód Böngészése

[cpp] Add emscripten conditional

Hugh Sanderson 12 éve
szülő
commit
3e00df87a7
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      std/cpp/Lib.hx

+ 1 - 1
std/cpp/Lib.hx

@@ -27,7 +27,7 @@ class Lib {
 		Load and return a Cpp primitive from a DLL library.
 	**/
 	public static function load( lib : String, prim : String, nargs : Int ) : Dynamic {
-		#if iphone
+		#if (iphone || emscripten)
 		return loadLazy(lib,prim,nargs);
 		#else
 		return untyped __global__.__loadprim(lib,prim,nargs);