diff options
author | 2015-07-29 15:47:46 +0000 | |
---|---|---|
committer | 2015-07-29 15:47:46 +0000 | |
commit | 7d71d88c6d305d6ed19b320944f4ce644db82240 (patch) | |
tree | f391c770210e5787e7a98001bbc7d931fbfe5302 /tools/aidl/aidl.cpp | |
parent | e942b4596a12685cb722ddef4e59e279e6fd513f (diff) | |
parent | 98c11b511a15972e9c1284f8f490ca443c6d3429 (diff) |
Merge "Use _WIN32 rather than HAVE_WINDOWS_PATHS."
Diffstat (limited to 'tools/aidl/aidl.cpp')
-rw-r--r-- | tools/aidl/aidl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aidl/aidl.cpp b/tools/aidl/aidl.cpp index e31b03c07e9a..ff08b67fe234 100644 --- a/tools/aidl/aidl.cpp +++ b/tools/aidl/aidl.cpp @@ -177,7 +177,7 @@ check_filename(const char* filename, const char* package, buffer_type* name) char cwd[MAXPATHLEN]; bool valid = false; -#ifdef HAVE_WINDOWS_PATHS +#ifdef _WIN32 if (isalpha(filename[0]) && filename[1] == ':' && filename[2] == OS_PATH_SEPARATOR) { #else @@ -217,7 +217,7 @@ check_filename(const char* filename, const char* package, buffer_type* name) if (valid) { p = fn.c_str() + (len - expected.length()); -#ifdef HAVE_WINDOWS_PATHS +#ifdef _WIN32 if (OS_PATH_SEPARATOR != '/') { // Input filename under cygwin most likely has / separators // whereas the expected string uses \\ separators. Adjust |