mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Cross compatibility function union (strcasecmp, unlink)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@293 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f44a06465a
commit
23665a7b93
6 changed files with 15 additions and 37 deletions
|
@ -16,6 +16,7 @@
|
|||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "Common.h"
|
||||
|
||||
#include "FileHandlerARC.h"
|
||||
#include "StringUtil.h"
|
||||
|
@ -225,11 +226,7 @@ CARCFile::FindFileInfo(std::string _rFullPath) const
|
|||
{
|
||||
for (size_t i = 0; i < m_FileInfoVector.size(); i++)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if (!_stricmp(m_FileInfoVector[i].m_FullPath.c_str(), _rFullPath.c_str()))
|
||||
#else
|
||||
if (!strcasecmp(m_FileInfoVector[i].m_FullPath.c_str(), _rFullPath.c_str())) //TODO(Sonic): Shouldn't this work in all platforms?
|
||||
#endif
|
||||
if (!strcasecmp(m_FileInfoVector[i].m_FullPath.c_str(), _rFullPath.c_str()))
|
||||
{
|
||||
return(&m_FileInfoVector[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue