summaryrefslogtreecommitdiffstats
path: root/Common/include
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-12-20 05:41:39 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-12-20 05:41:39 +0000
commit45ca3b1c4cfcf791c5884697f18ff96da77a2cdc (patch)
tree9143b7e6945d5fbfa5039bd8d09770c156339e4f /Common/include
parentFixed file paths ('\' -> '/') to fix Android build on linux (diff)
downloadDiligentCore-45ca3b1c4cfcf791c5884697f18ff96da77a2cdc.tar.gz
DiligentCore-45ca3b1c4cfcf791c5884697f18ff96da77a2cdc.zip
Enabling linux build (in progress)
Diffstat (limited to 'Common/include')
-rw-r--r--Common/include/StringTools.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Common/include/StringTools.h b/Common/include/StringTools.h
index 6bf713de..74b6e7dd 100644
--- a/Common/include/StringTools.h
+++ b/Common/include/StringTools.h
@@ -70,7 +70,7 @@ inline std::wstring WidenString(const std::string &Str)
inline int StrCmpNoCase(const char* Str1, const char* Str2, size_t NumChars)
{
-#ifdef PLATFORM_ANDROID
+#if defined(PLATFORM_ANDROID) || defined(PLATFORM_LINUX)
# define _strnicmp strncasecmp
#endif
@@ -79,7 +79,7 @@ inline int StrCmpNoCase(const char* Str1, const char* Str2, size_t NumChars)
inline int StrCmpNoCase(const char* Str1, const char* Str2)
{
-#ifdef PLATFORM_ANDROID
+#if defined(PLATFORM_ANDROID) || defined(PLATFORM_LINUX)
# define _stricmp strcasecmp
#endif