]> source.dussan.org Git - tigervnc.git/commitdiff
Replaced call to Win32-specific stricmp() function with strcasecmp().
authorConstantin Kaplinsky <const@tightvnc.com>
Wed, 11 Apr 2007 08:43:17 +0000 (08:43 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Wed, 11 Apr 2007 08:43:17 +0000 (08:43 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2253 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/ScaleFilters.cxx

index 12984669c96c8b384c1c960f121dcb0f0ab0a00b..0eb7c23556fe8092b89456858d31c65e0c1a54f8 100644 (file)
 #include <rfb/Rect.h>\r
 #include <rfb/ScaleFilters.h>\r
 \r
+#ifdef _WIN32\r
+#define strcasecmp _stricmp\r
+#endif\r
+\r
 using namespace rfb;\r
 \r
 //\r
@@ -73,7 +77,7 @@ SFilter &ScaleFilters::operator[](unsigned int filter_id) {
 \r
 int ScaleFilters::getFilterIdByName(char *filterName) {\r
   for (int i = 0; i <= scaleFilterMaxNumber; i++) {\r
-    if (stricmp(filters[i].name, filterName) == 0) return i;\r
+    if (strcasecmp(filters[i].name, filterName) == 0) return i;\r
   }\r
   return -1;\r
 }\r