Skip to content
Snippets Groups Projects
Commit d09a70d0 authored by rswindell's avatar rswindell
Browse files

Had MKDIR, RMDIR, and FULLPATH macro definitions backwards.

parent 1b46802f
No related branches found
No related tags found
No related merge requests found
...@@ -80,18 +80,18 @@ extern "C" { ...@@ -80,18 +80,18 @@ extern "C" {
#ifdef __unix__ #ifdef __unix__
#define ALLFILES "*" /* matches all files in a directory */ #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)
#include <glob.h> /* POSIX.2 directory pattern matching function */ #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 #else
#define ALLFILES "*.*" /* matches all files in a directory */ #define ALLFILES "*.*" /* matches all files in a directory */
#define MKDIR(dir) mkdir(dir,0777) #define MKDIR(dir) _mkdir(dir)
#define RMDIR(dir) rmdir(dir) #define RMDIR(dir) _rmdir(dir)
#define FULLPATH(a,r,l) realpath(r,a) #define FULLPATH(a,r,l) _fullpath(a,r,l)
/* glob-compatible findfirst/findnext wrapper */ /* glob-compatible findfirst/findnext wrapper */
typedef struct typedef struct
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment