Fix Win compile errors and warnings

This commit is contained in:
davidpanderson 2023-03-04 13:27:57 -08:00
parent 585462a23d
commit b38b83549d
2 changed files with 6 additions and 4 deletions

View File

@ -45,8 +45,8 @@ extern const char *strcasestr(const char *s1, const char *s2);
#if !HAVE_STRCASECMP
inline int strcasecmp(const char* s1, const char* s2) {
while (*s1 && *s2) {
char c1 = tolower(*s1++);
char c2 = tolower(*s2++);
char c1 = (char)tolower(*s1++);
char c2 = (char)tolower(*s2++);
if (c1 < c2) return -1;
if (c1 > c2) return 1;
}

View File

@ -1,8 +1,10 @@
#include <string>
#include <ios>
#include "gtest/gtest.h"
#include "common_defs.h"
#include "url.h"
#include <string>
#include <ios>
#include "str_replace.h"
using namespace std;