[Common] fixed undeclared strcasecmp()

This commit is contained in:
no 2016-01-12 21:21:23 -05:00
parent 1b2ca46906
commit c1ac20d35c
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;