[Common] fixed undeclared strcasecmp()
This commit is contained in:
parent
1b2ca46906
commit
c1ac20d35c
|
@ -1,6 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#ifndef _WIN32
|
||||
/* for POSIX method away from Win32 _stricmp--see "Platform.h" */
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#include "Platform.h"
|
||||
|
||||
#include "FileClass.h"
|
||||
#include "CriticalSection.h"
|
||||
#include "StdString.h"
|
||||
|
@ -10,7 +15,10 @@ class CIniFileBase
|
|||
{
|
||||
struct insensitive_compare
|
||||
{
|
||||
bool operator() (const std::string & a, const std::string & b) const { return _stricmp(a.c_str(), b.c_str()) < 0; }
|
||||
bool operator() (const std::string & a, const std::string & b) const
|
||||
{
|
||||
return _stricmp(a.c_str(), b.c_str()) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
typedef std::string ansi_string;
|
||||
|
|
Loading…
Reference in New Issue