forked from Mirrorlandia_minetest/irrlicht
master #5
@ -745,15 +745,10 @@ IFileList* CFileSystem::createFileList()
|
||||
|
||||
r = new CFileList(Path, true, false);
|
||||
|
||||
// TODO: Should be unified once mingw adapts the proper types
|
||||
#if defined(__GNUC__)
|
||||
long hFile; //mingw return type declaration
|
||||
#else
|
||||
// intptr_t is optional but supported by MinGW since 2007 or earlier.
|
||||
intptr_t hFile;
|
||||
#endif
|
||||
|
||||
struct _tfinddata_t c_file;
|
||||
if( (hFile = _tfindfirst( _T("*"), &c_file )) != -1L )
|
||||
if( (hFile = _tfindfirst( _T("*"), &c_file )) != (intptr_t)(-1L) )
|
||||
{
|
||||
do
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user