Skip to content

Commit

Permalink
Add condition to support ealier version of Haxe
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrzarzycki21 committed Aug 31, 2023
1 parent 4815591 commit 7671987
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions haxe/champaign/sys/io/process/AbstractProcess.hx
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,15 @@ abstract class AbstractProcess {

function new( cmd:String, ?args:Array<String>, ?workingDirectory:String, ?performanceSettings:ProcessPerformanceSettings ) {

#if (target.threaded != true )
#error "AbstractProcess is not available on this target (no Thread support)"
#end
#if (haxe_ver < 4.3)
#if (target.thread != true )
#error "AbstractProcess is not available on this target (no Thread support)"
#end
#else
#if (target.threaded != true )
#error "AbstractProcess is not available on this target (no Thread support)"
#end
#end

_cmd = cmd;
_args = args;
Expand Down

0 comments on commit 7671987

Please sign in to comment.