From 8015148ee07ea8c5eaeb4c8bacf28f8d91968f06 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Tue, 31 May 2022 02:37:52 -0400 Subject: [PATCH] Fix conditional compilation. For real this time, definitely, hopefully, maybe. --- src/lime/_internal/backend/native/NativeApplication.hx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lime/_internal/backend/native/NativeApplication.hx b/src/lime/_internal/backend/native/NativeApplication.hx index d3bd95f44..0219b7571 100644 --- a/src/lime/_internal/backend/native/NativeApplication.hx +++ b/src/lime/_internal/backend/native/NativeApplication.hx @@ -601,9 +601,15 @@ class NativeApplication } } - #if (haxe_ver > "4.1.5" && target.threaded) + #if (haxe_ver > "4.1.5") + #if target.threaded sys.thread.Thread.current().events.progress(); #else + // Duplicate code required because Haxe 3 can't handle + // #if (haxe_ver > "4.1.5" && target.threaded) + @:privateAccess haxe.EntryPoint.processEvents(); + #end + #else @:privateAccess haxe.EntryPoint.processEvents(); #end #end