summaryrefslogtreecommitdiff
path: root/tools/aidl/search_path.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-08-17 12:41:46 -0700
committerElliott Hughes <enh@google.com>2015-08-17 12:41:46 -0700
commite17788ceff5c676f3783e5aa25d57a613e9f59db (patch)
tree5c02145f2500a7c1021415980ab28706b6a0bffb /tools/aidl/search_path.cpp
parente3f0a881c20072a644317330ecf7409c81e96888 (diff)
Replace HAVE_MS_C_RUNTIME with _WIN32 in frameworks/base/tools.
Change-Id: Ideef62acbf53a442167c9b8038021affffef9e8a
Diffstat (limited to 'tools/aidl/search_path.cpp')
-rw-r--r--tools/aidl/search_path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aidl/search_path.cpp b/tools/aidl/search_path.cpp
index 29dbe260c4f1..029e216b0abd 100644
--- a/tools/aidl/search_path.cpp
+++ b/tools/aidl/search_path.cpp
@@ -4,7 +4,7 @@
#include "os.h"
#include <string.h>
-#ifdef HAVE_MS_C_RUNTIME
+#ifdef _WIN32
#include <io.h>
#endif
@@ -42,7 +42,7 @@ find_import_file(const char* given)
}
f.append(expected);
-#ifdef HAVE_MS_C_RUNTIME
+#ifdef _WIN32
/* check that the file exists and is not write-only */
if (0 == _access(f.c_str(), 0) && /* mode 0=exist */
0 == _access(f.c_str(), 4) ) { /* mode 4=readable */