Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sylvain Joubert
KWSys
Commits
780b22a3
Commit
780b22a3
authored
21 years ago
by
Brad King
Browse files
Options
Downloads
Patches
Plain Diff
ERR: Fixed use of _findfirst for MSVC 6.
parent
658c907d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Directory.cxx
+6
-1
6 additions, 1 deletion
Directory.cxx
with
6 additions
and
1 deletion
Directory.cxx
+
6
−
1
View file @
780b22a3
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment