mirror of https://github.com/fadden/nulib2.git
Windows
This commit is contained in:
parent
ae8eec5d1b
commit
508531fb54
|
@ -24,6 +24,15 @@ static const char kFssep = PATH_SEP;
|
||||||
|
|
||||||
#define kTempFile "exer-temp"
|
#define kTempFile "exer-temp"
|
||||||
|
|
||||||
|
#ifndef HAVE_STRCASECMP
|
||||||
|
static int strcasecmp(const char *str1, const char *str2)
|
||||||
|
{
|
||||||
|
while (*str1 && *str2 && toupper(*str1) == toupper(*str2))
|
||||||
|
str1++, str2++;
|
||||||
|
return (toupper(*str1) - toupper(*str2));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ===========================================================================
|
* ===========================================================================
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
|
||||||
#ifndef HAVE_STRCASECMP
|
#ifndef HAVE_STRCASECMP
|
||||||
static int
|
static int strcasecmp(const char *str1, const char *str2)
|
||||||
strcasecmp(const char *str1, const char *str2)
|
|
||||||
{
|
{
|
||||||
while (*str1 && *str2 && toupper(*str1) == toupper(*str2))
|
while (*str1 && *str2 && toupper(*str1) == toupper(*str2))
|
||||||
str1++, str2++;
|
str1++, str2++;
|
||||||
|
|
Loading…
Reference in New Issue