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:
XTra.KrazzY
2008-08-24 16:25:52 +00:00
parent f44a06465a
commit 23665a7b93
6 changed files with 15 additions and 37 deletions

View File

@ -16,6 +16,7 @@
// http://code.google.com/p/dolphin-emu/
#include "stdafx.h"
#include "Common.h"
#include <string>
@ -164,11 +165,7 @@ CFileSystemGCWii::FindFileInfo(const char* _rFullPath) const
{
for (size_t i = 0; i < m_FileInfoVector.size(); i++)
{
#ifdef _WIN32
if (!_stricmp(m_FileInfoVector[i].m_FullPath, _rFullPath))
#else
if (!strcasecmp(m_FileInfoVector[i].m_FullPath, _rFullPath)) //TODO(Sonic): Shouldn't this work in all platforms?
#endif
if (!strcasecmp(m_FileInfoVector[i].m_FullPath, _rFullPath))
{
return(&m_FileInfoVector[i]);
}