Fix error on MinGW

(cherry picked from commit db0d54f855)
This commit is contained in:
Victor Zverovich authored and Jonathan Müller committed 2017-06-08 11:32:49 +02:00
1 parent aad76bf4c1
commit 9589bf05de
2 files changed
+13 -2

No files matched your search

+5 -1
View File
@@ -2823,7 +2823,11 @@ inline int IsATTY(int /* fd */) { return 0; }
inline int IsATTY(int fd) { return _isatty(fd); }
# endif // GTEST_OS_WINDOWS_MOBILE
inline int StrCaseCmp(const char* s1, const char* s2) {
return _stricmp(s1, s2);
# if _EMULATE_GLIBC
return strcasecmp(s1, s2);
# else
return _stricmp(s1, s2);
# endif
}
inline char* StrDup(const char* src) { return _strdup(src); }
# endif // __BORLANDC__