Browse Source

fix for haxe 3.x

ncannasse 7 years ago
parent
commit
711fdefcd1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/net/Socket.hx

+ 1 - 1
hxd/net/Socket.hx

@@ -221,7 +221,7 @@ private class FlashSocketOutput extends SocketOutput {
 		f();
 	}
 
-	override function writeString( str : String, ?encoding :  haxe.io.Encoding ) {
+	override function writeString( str : String #if (haxe_ver >= 4) , ?encoding :  haxe.io.Encoding #end ) {
 		s.writeUTFBytes(str);
 		f();
 	}