Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Use _WIN32 rather than HAVE_WINDOWS_PATHS."
Browse files Browse the repository at this point in the history
  • Loading branch information
enh-google authored and Gerrit Code Review committed Jul 29, 2015
2 parents e942b45 + 98c11b5 commit 7d71d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/aidl/aidl.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7d71d88

Please sign in to comment.