From e17788ceff5c676f3783e5aa25d57a613e9f59db Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 17 Aug 2015 12:41:46 -0700 Subject: Replace HAVE_MS_C_RUNTIME with _WIN32 in frameworks/base/tools. Change-Id: Ideef62acbf53a442167c9b8038021affffef9e8a --- tools/aidl/aidl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/aidl/aidl.cpp') diff --git a/tools/aidl/aidl.cpp b/tools/aidl/aidl.cpp index 368e73d05f18..438007f527d5 100644 --- a/tools/aidl/aidl.cpp +++ b/tools/aidl/aidl.cpp @@ -15,7 +15,7 @@ #include #include -#ifdef HAVE_MS_C_RUNTIME +#ifdef _WIN32 #include #include #include @@ -754,7 +754,7 @@ check_outputFilePath(const string& path) { if (path[i] == OS_PATH_SEPARATOR) { string p = path.substr(0, i); if (access(path.data(), F_OK) != 0) { -#ifdef HAVE_MS_C_RUNTIME +#ifdef _WIN32 _mkdir(p.data()); #else mkdir(p.data(), S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP); @@ -1113,7 +1113,7 @@ preprocess_aidl(const Options& options) // write preprocessed file int fd = open( options.outputFileName.c_str(), O_RDWR|O_CREAT|O_TRUNC|O_BINARY, -#ifdef HAVE_MS_C_RUNTIME +#ifdef _WIN32 _S_IREAD|_S_IWRITE); #else S_IRUSR|S_IWUSR|S_IRGRP); -- cgit v1.2.3-59-g8ed1b