summaryrefslogtreecommitdiffstats
path: root/tools/aidl
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2014-11-10 15:01:43 -0800
committerYabin Cui <yabinc@google.com>2014-11-10 16:08:50 -0800
commitfb8e2b17452b8205d2d5cf516553ba80407c0ab1 (patch)
treedd3c52435a67c248e44e24ae3c1fde383513803e /tools/aidl
parent189bf05616b854f0319c7329a96e63ad374fd6c0 (diff)
downloadframeworks_base-fb8e2b17452b8205d2d5cf516553ba80407c0ab1.zip
frameworks_base-fb8e2b17452b8205d2d5cf516553ba80407c0ab1.tar.gz
frameworks_base-fb8e2b17452b8205d2d5cf516553ba80407c0ab1.tar.bz2
kill OS_CASE_SENSITIVE
Bug: 18314594 Change-Id: Ib11b45d2597b2576bc7df2d0167ce1bbd1449523
Diffstat (limited to 'tools/aidl')
-rw-r--r--tools/aidl/aidl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/aidl/aidl.cpp b/tools/aidl/aidl.cpp
index 45dd23b..14c9f95 100644
--- a/tools/aidl/aidl.cpp
+++ b/tools/aidl/aidl.cpp
@@ -228,7 +228,8 @@ check_filename(const char* filename, const char* package, buffer_type* name)
}
#endif
-#ifdef OS_CASE_SENSITIVE
+ // aidl assumes case-insensitivity on Mac Os and Windows.
+#if defined(__linux__)
valid = (expected == p);
#else
valid = !strcasecmp(expected.c_str(), p);