diff --git a/lime/utils/Bytes.hx b/lime/utils/Bytes.hx index 54ac21834..d832ab648 100644 --- a/lime/utils/Bytes.hx +++ b/lime/utils/Bytes.hx @@ -50,7 +50,7 @@ abstract Bytes(HaxeBytes) from HaxeBytes to HaxeBytes { public static function fromFile (path:String):Bytes { - #if (!html5 && !macro) + #if (sys && lime_cffi && !macro) #if !cs var bytes = Bytes.alloc (0); NativeCFFI.lime_bytes_read_file (path, bytes); @@ -106,4 +106,4 @@ abstract Bytes(HaxeBytes) from HaxeBytes to HaxeBytes { #end -} \ No newline at end of file +}