From d79801d60da1bd3d3e57f76c157f7e02d326243c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 5 Feb 2015 08:21:37 -0800 Subject: [PATCH] Fix Windows build. Take 2. Probably should have done this in the beginning, but thought I was being clever. Change-Id: I85c6e487eece9bcc75f8f62c850c2d4d1ee9e908 --- include/utils/file.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/utils/file.h b/include/utils/file.h index d6b705783..8685ee287 100644 --- a/include/utils/file.h +++ b/include/utils/file.h @@ -24,8 +24,11 @@ namespace android { bool ReadFileToString(const std::string& path, std::string* content); bool WriteStringToFile(const std::string& content, const std::string& path); + +#if !defined(_WIN32) bool WriteStringToFile(const std::string& content, const std::string& path, mode_t mode, uid_t owner, gid_t group); +#endif } // namespace android