Try a different approach to haxe_ver.

This commit is contained in:
Joseph Cloutier
2022-05-31 02:57:02 -04:00
parent 8015148ee0
commit c48f1fb44a

View File

@@ -601,12 +601,12 @@ class NativeApplication
} }
} }
#if (haxe_ver > "4.1.5") #if (haxe_ver >= 4.2)
#if target.threaded #if target.threaded
sys.thread.Thread.current().events.progress(); sys.thread.Thread.current().events.progress();
#else #else
// Duplicate code required because Haxe 3 can't handle // Duplicate code required because Haxe 3 can't handle
// #if (haxe_ver > "4.1.5" && target.threaded) // #if (haxe_ver >= 4.2 && target.threaded)
@:privateAccess haxe.EntryPoint.processEvents(); @:privateAccess haxe.EntryPoint.processEvents();
#end #end
#else #else