Commit 24007b80 authored by sdottaka's avatar sdottaka

Fix broken build for Visual C++

parent a2f45bf8
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> #include <limits.h>
#include <unistd.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -30,11 +29,12 @@ ...@@ -30,11 +29,12 @@
#define CHMOD(a, b) 0 #define CHMOD(a, b) 0
#define MAXPATHLEN 1024 #define MAXPATHLEN 1024
#if !defined(PATH_MAX) #if !defined(PATH_MAX)
#define PATH_MAX MAX_PATH #define PATH_MAX _MAX_PATH
#endif #endif
#define realpath(N,R) _fullpath((R),(N),_MAX_PATH) #define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
#include <direct.h> #include <direct.h>
#else #else
#include <unistd.h>
#define UNLINK unlink #define UNLINK unlink
#define GETCWD getcwd #define GETCWD getcwd
#define CHMOD(a, b) chmod(a,b) #define CHMOD(a, b) chmod(a,b)
......
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