浏览代码

fix for haxe 3.x

ncannasse 7 年之前
父节点
当前提交
711fdefcd1
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();
 	}