OSDN Git Service

Use _WIN32 rather than HAVE_WINDOWS_PATHS.
authorElliott Hughes <enh@google.com>
Wed, 29 Jul 2015 15:44:17 +0000 (08:44 -0700)
committerElliott Hughes <enh@google.com>
Wed, 29 Jul 2015 15:44:17 +0000 (08:44 -0700)
Change-Id: Ib1ae71dfbb20e3e5309ed737f48382cc42d2583f

tools/aidl/aidl.cpp

index e31b03c..ff08b67 100644 (file)
@@ -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