From 8e6f7227641e05dccfc29dad62e29e730ff8f5ca Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Mon, 8 Feb 2016 16:26:33 -0800 Subject: libziparchive: port unit tests to darwin and windows. Also use ReadFully to replace read, because read can return reading bytes less than requested. And use WriteFully to replace write. Bug: 26962895 Change-Id: Iff0b2bc6d925619a537f7fef682c2a7ad89a2dc2 --- base/file.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'base/file.cpp') diff --git a/base/file.cpp b/base/file.cpp index bcdfc5e99..da1adba19 100644 --- a/base/file.cpp +++ b/base/file.cpp @@ -29,10 +29,6 @@ #include "cutils/log.h" #include "utils/Compat.h" -#if !defined(_WIN32) -#define O_BINARY 0 -#endif - namespace android { namespace base { -- cgit v1.2.3