From ece53252b2306ea42a2438aea010246f99292f43 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Thu, 5 Jan 2017 23:46:32 -0800 Subject: [PATCH] Update Bytes.hx --- lime/utils/Bytes.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}