From 41c8677a954111393bc43652d9451552c15e5ef1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 12 Feb 2004 13:38:18 -0500 Subject: ERR: Fixed use of _findfirst for MSVC 6. --- Source/kwsys/Directory.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx index 3f1f7e8..40425ef 100644 --- a/Source/kwsys/Directory.cxx +++ b/Source/kwsys/Directory.cxx @@ -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 ) -- cgit v0.12