diff options
author | Brad King <brad.king@kitware.com> | 2004-02-12 18:38:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-02-12 18:38:18 (GMT) |
commit | 41c8677a954111393bc43652d9451552c15e5ef1 (patch) | |
tree | 4be1c86a46020721a9777f66684b6d4e72723765 /Source/kwsys/Directory.cxx | |
parent | 012a14de691644780c0ef152ea474f35e7d8d486 (diff) | |
download | CMake-41c8677a954111393bc43652d9451552c15e5ef1.zip CMake-41c8677a954111393bc43652d9451552c15e5ef1.tar.gz CMake-41c8677a954111393bc43652d9451552c15e5ef1.tar.bz2 |
ERR: Fixed use of _findfirst for MSVC 6.
Diffstat (limited to 'Source/kwsys/Directory.cxx')
-rw-r--r-- | Source/kwsys/Directory.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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 ) |