Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
886c29bd
Commit
886c29bd
authored
Apr 06, 2002
by
rswindell
Browse files
Removed unnecessary macro definitions: RMDIR, PUTENV, and GETCWD.
parent
d71492a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
src/xpdev/dirwrap.h
src/xpdev/dirwrap.h
+4
-18
No files found.
src/xpdev/dirwrap.h
View file @
886c29bd
...
...
@@ -56,14 +56,12 @@ extern "C" {
#define ALLFILES "*"
/* matches all files in a directory */
#include <glob.h>
/* POSIX.2 directory pattern matching function */
#define MKDIR(dir) mkdir(dir,0777)
#define RMDIR(dir) rmdir(dir)
#define FULLPATH(a,r,l) realpath(r,a)
#else
#define ALLFILES "*.*"
/* matches all files in a directory */
#define MKDIR(dir) _mkdir(dir)
#define RMDIR(dir) _rmdir(dir)
#define FULLPATH(a,r,l) _fullpath(a,r,l)
/* glob-compatible findfirst/findnext wrapper */
...
...
@@ -156,23 +154,11 @@ extern "C" {
#endif
#if defined(_MSC_VER) || defined(__MINGW32__)
#define CHMOD(s,m) _chmod(s,m)
#define PUTENV _putenv
#define GETCWD _getcwd
#define CHMOD(s,m) _chmod(s,m)
#elif defined(__BORLANDC__)
#define CHMOD(p,a) _rtl_chmod(p,1,a)
/* _chmod obsolete in 4.x */
#define PUTENV putenv
#define GETCWD getcwd
#else
/* ??? */
#define CHMOD(s,m) chmod(s,m)
#define PUTENV putenv
#define GETCWD getcwd
#define CHMOD(p,a) _rtl_chmod(p,1,a)
/* _chmod obsolete in 4.x */
#else
#define CHMOD(s,m) chmod(s,m)
#endif
/* General file system wrappers for all platforms and compilers */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment