diff --git a/Source/Common/IniFileClass.h b/Source/Common/IniFileClass.h index 2effbb7ba..db076f21b 100644 --- a/Source/Common/IniFileClass.h +++ b/Source/Common/IniFileClass.h @@ -1,6 +1,11 @@ #pragma once +#ifndef _WIN32 +/* for POSIX method away from Win32 _stricmp--see "Platform.h" */ +#include +#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;