Merge pull request #874 from cxd4/have-strings_h

[Common] fixed undeclared strcasecmp()
This commit is contained in:
zilmar 2016-01-13 20:01:59 +11:00
commit 38c6a66f0f
1 changed files with 9 additions and 1 deletions

View File

@ -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;