summaryrefslogtreecommitdiffstats
path: root/third_party/cld/base/string_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/cld/base/string_util.h')
-rw-r--r--third_party/cld/base/string_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/cld/base/string_util.h b/third_party/cld/base/string_util.h
index 365d1bf..7717e5b 100644
--- a/third_party/cld/base/string_util.h
+++ b/third_party/cld/base/string_util.h
@@ -11,12 +11,18 @@
namespace base {
+#ifdef WIN32
// Compare the two strings s1 and s2 without regard to case using
// the current locale; returns 0 if they are equal, 1 if s1 > s2, and -1 if
// s2 > s1 according to a lexicographic comparison.
inline int strcasecmp(const char* s1, const char* s2) {
return _stricmp(s1, s2);
}
+#else
+inline int strcasecmp(const char* s1, const char* s2) {
+ return strcasecmp(s1, s2);
+}
+#endif
}