Skip to content

Commit

Permalink
NativeProcess, FileStream: some Haxe 3 compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed May 9, 2023
1 parent 0f106d9 commit 1a7ba13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/openfl/desktop/NativeProcess.hx
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ private class OutboundPipe implements IDataOutput
}
}
}
#else
#elseif flash
#if air
typedef NativeProcess = flash.desktop.NativeProcess;
#end
Expand Down
4 changes: 2 additions & 2 deletions src/openfl/filesystem/FileStream.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package openfl.filesystem;

#if (!flash && sys)
#if (haxe4 && sys && !flash)
import haxe.Json;
import haxe.Serializer;
import haxe.Timer;
Expand Down Expand Up @@ -1625,7 +1625,7 @@ class FileStream extends EventDispatcher implements IDataInput implements IDataO
return position = value;
}
}
#else
#elseif flash
#if air
typedef FileStream = flash.filesystem.FileStream;
#end
Expand Down

0 comments on commit 1a7ba13

Please sign in to comment.