Bladeren bron

flash compilation fixes

Nicolas Cannasse 10 jaren geleden
bovenliggende
commit
ad58f8b053
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      std/haxe/io/Input.hx
  2. 1 1
      std/haxe/io/Output.hx

+ 1 - 1
std/haxe/io/Input.hx

@@ -190,7 +190,7 @@ class Input {
 
 		Endianness is specified by the `bigEndian` property.
 	**/
-	public inline function readFloat() : Float {
+	public #if !flash inline #end function readFloat() : Float {
 		return FPHelper.i32ToFloat(readInt32());
 	}
 

+ 1 - 1
std/haxe/io/Output.hx

@@ -130,7 +130,7 @@ class Output {
 
 		Endianness is specified by the `bigEndian` property.
 	**/
-	public inline function writeFloat( x : Float ) {
+	public #if !flash inline #end function writeFloat( x : Float ) {
 		writeInt32(FPHelper.floatToI32(x));
 	}