ERR: Fixed use of _findfirst for MSVC 6.
This commit is contained in:
parent
012a14de69
commit
41c8677a95
|
@ -81,6 +81,11 @@ namespace KWSYS_NAMESPACE
|
||||||
|
|
||||||
bool Directory::Load(const char* name)
|
bool Directory::Load(const char* name)
|
||||||
{
|
{
|
||||||
|
#if _MSC_VER < 1300
|
||||||
|
long srchHandle;
|
||||||
|
#else
|
||||||
|
intptr_t srchHandle;
|
||||||
|
#endif
|
||||||
char* buf;
|
char* buf;
|
||||||
size_t n = strlen(name);
|
size_t n = strlen(name);
|
||||||
if ( name[n - 1] == '/' )
|
if ( name[n - 1] == '/' )
|
||||||
|
@ -96,7 +101,7 @@ bool Directory::Load(const char* name)
|
||||||
struct _finddata_t data; // data of current file
|
struct _finddata_t data; // data of current file
|
||||||
|
|
||||||
// Now put them into the file array
|
// Now put them into the file array
|
||||||
intptr_t srchHandle = _findfirst(buf, &data);
|
srchHandle = _findfirst(buf, &data);
|
||||||
delete [] buf;
|
delete [] buf;
|
||||||
|
|
||||||
if ( srchHandle == -1 )
|
if ( srchHandle == -1 )
|
||||||
|
|
Loading…
Reference in New Issue