ERR: Fixed use of _findfirst for MSVC 6.

This commit is contained in:
Brad King 2004-02-12 13:38:18 -05:00
parent 012a14de69
commit 41c8677a95
1 changed files with 6 additions and 1 deletions

View File

@ -81,6 +81,11 @@ namespace KWSYS_NAMESPACE
bool Directory::Load(const char* name)
{
#if _MSC_VER < 1300
long srchHandle;
#else
intptr_t srchHandle;
#endif
char* buf;
size_t n = strlen(name);
if ( name[n - 1] == '/' )
@ -96,7 +101,7 @@ bool Directory::Load(const char* name)
struct _finddata_t data; // data of current file
// Now put them into the file array
intptr_t srchHandle = _findfirst(buf, &data);
srchHandle = _findfirst(buf, &data);
delete [] buf;
if ( srchHandle == -1 )