Parcourir la source

fix for haxe 3.x

ncannasse il y a 7 ans
Parent
commit
711fdefcd1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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();
 	}