浏览代码

Fix windows problem in curl

Andy Cedilnik 22 年之前
父节点
当前提交
25dd201047
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Source/CTest/Curl/strequal.c

+ 4 - 4
Source/CTest/Curl/strequal.c

@@ -30,10 +30,10 @@ int curl_strequal(const char *first, const char *second)
 {
 {
 #if defined(HAVE_STRCASECMP)
 #if defined(HAVE_STRCASECMP)
   return !(strcasecmp)(first, second);
   return !(strcasecmp)(first, second);
-#elif defined(HAVE_STRCMPI)
-  return !(strcmpi)(first, second);
 #elif defined(HAVE_STRICMP)
 #elif defined(HAVE_STRICMP)
   return !(stricmp)(first, second);
   return !(stricmp)(first, second);
+#elif defined(HAVE_STRCMPI)
+  return !(strcmpi)(first, second);
 #else
 #else
   while (*first && *second) {
   while (*first && *second) {
     if (toupper(*first) != toupper(*second)) {
     if (toupper(*first) != toupper(*second)) {
@@ -50,10 +50,10 @@ int curl_strnequal(const char *first, const char *second, size_t max)
 {
 {
 #if defined(HAVE_STRCASECMP)
 #if defined(HAVE_STRCASECMP)
   return !strncasecmp(first, second, max);
   return !strncasecmp(first, second, max);
-#elif defined(HAVE_STRCMPI)
-  return !strncmpi(first, second, max);
 #elif defined(HAVE_STRICMP)
 #elif defined(HAVE_STRICMP)
   return !strnicmp(first, second, max);
   return !strnicmp(first, second, max);
+#elif defined(HAVE_STRCMPI)
+  return !strncmpi(first, second, max);
 #else
 #else
   while (*first && *second && max) {
   while (*first && *second && max) {
     if (toupper(*first) != toupper(*second)) {
     if (toupper(*first) != toupper(*second)) {