mirror of https://github.com/BOINC/boinc.git
Fix Win compile errors and warnings
This commit is contained in:
parent
585462a23d
commit
b38b83549d
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue