mirror of
https://github.com/fadden/nulib2.git
synced 2025-01-14 01:29:43 +00:00
Windows
This commit is contained in:
parent
ae8eec5d1b
commit
508531fb54
@ -24,6 +24,15 @@ static const char kFssep = PATH_SEP;
|
||||
|
||||
#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"
|
||||
|
||||
#ifndef HAVE_STRCASECMP
|
||||
static int
|
||||
strcasecmp(const char *str1, const char *str2)
|
||||
static int strcasecmp(const char *str1, const char *str2)
|
||||
{
|
||||
while (*str1 && *str2 && toupper(*str1) == toupper(*str2))
|
||||
str1++, str2++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user