Commit 886c29bd authored by rswindell's avatar rswindell
Browse files

Removed unnecessary macro definitions: RMDIR, PUTENV, and GETCWD.

parent d71492a8
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment