Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Main
Synchronet
Commits
affc86e6
Commit
affc86e6
authored
11 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
DLLangadingdong
parent
0cb16ec2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/dirwrap.c
+4
-4
4 additions, 4 deletions
src/xpdev/dirwrap.c
src/xpdev/dirwrap.h
+4
-4
4 additions, 4 deletions
src/xpdev/dirwrap.h
with
8 additions
and
8 deletions
src/xpdev/dirwrap.c
+
4
−
4
View file @
affc86e6
...
@@ -334,7 +334,7 @@ long DLLCALL getdirsize(const char* path, BOOL include_subdirs, BOOL subdir_only
...
@@ -334,7 +334,7 @@ long DLLCALL getdirsize(const char* path, BOOL include_subdirs, BOOL subdir_only
/* POSIX directory operations using Microsoft _findfirst/next API. */
/* POSIX directory operations using Microsoft _findfirst/next API. */
/****************************************************************************/
/****************************************************************************/
#if defined(_MSC_VER) || defined(__DMC__)
#if defined(_MSC_VER) || defined(__DMC__)
DIR
*
opendir
(
const
char
*
dirname
)
DIR
*
DLLCALL
opendir
(
const
char
*
dirname
)
{
{
DIR
*
dir
;
DIR
*
dir
;
...
@@ -354,7 +354,7 @@ DIR* opendir(const char* dirname)
...
@@ -354,7 +354,7 @@ DIR* opendir(const char* dirname)
}
}
return
(
dir
);
return
(
dir
);
}
}
struct
dirent
*
readdir
(
DIR
*
dir
)
struct
dirent
*
DLLCALL
readdir
(
DIR
*
dir
)
{
{
if
(
dir
==
NULL
)
if
(
dir
==
NULL
)
return
(
NULL
);
return
(
NULL
);
...
@@ -367,7 +367,7 @@ struct dirent* readdir(DIR* dir)
...
@@ -367,7 +367,7 @@ struct dirent* readdir(DIR* dir)
dir
->
end
=
TRUE
;
dir
->
end
=
TRUE
;
return
(
&
dir
->
dirent
);
return
(
&
dir
->
dirent
);
}
}
int
closedir
(
DIR
*
dir
)
int
DLLCALL
closedir
(
DIR
*
dir
)
{
{
if
(
dir
==
NULL
)
if
(
dir
==
NULL
)
return
(
-
1
);
return
(
-
1
);
...
@@ -375,7 +375,7 @@ int closedir (DIR* dir)
...
@@ -375,7 +375,7 @@ int closedir (DIR* dir)
free
(
dir
);
free
(
dir
);
return
(
0
);
return
(
0
);
}
}
void
rewinddir
(
DIR
*
dir
)
void
DLLCALL
rewinddir
(
DIR
*
dir
)
{
{
if
(
dir
==
NULL
)
if
(
dir
==
NULL
)
return
;
return
;
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/dirwrap.h
+
4
−
4
View file @
affc86e6
...
@@ -156,10 +156,10 @@ extern "C" {
...
@@ -156,10 +156,10 @@ extern "C" {
/* Prototypes.
/* Prototypes.
*/
*/
D
IR
*
opendir
(
const
char
*
__dirname
);
D
LLEXPORT
DIR
*
DLLCALL
opendir
(
const
char
*
__dirname
);
struct
dirent
*
readdir
(
DIR
*
__dir
);
DLLEXPORT
struct
dirent
*
DLLCALL
readdir
(
DIR
*
__dir
);
int
closedir
(
DIR
*
__dir
);
DLLEXPORT
int
DLLCALL
closedir
(
DIR
*
__dir
);
void
rewinddir
(
DIR
*
__dir
);
DLLEXPORT
void
DLLCALL
rewinddir
(
DIR
*
__dir
);
#elif !defined(__WATCOMC__)
#elif !defined(__WATCOMC__)
#include
<dirent.h>
/* POSIX directory functions */
#include
<dirent.h>
/* POSIX directory functions */
#endif
#endif
...
...
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