--- ray/src/common/paths.h 2004/10/30 04:59:41 2.21 +++ ray/src/common/paths.h 2011/10/05 17:20:55 2.23 @@ -1,4 +1,4 @@ -/* RCSid $Id: paths.h,v 2.21 2004/10/30 04:59:41 greg Exp $ */ +/* RCSid $Id: paths.h,v 2.23 2011/10/05 17:20:55 greg Exp $ */ /* * Definitions for paths on different machines */ @@ -14,9 +14,10 @@ #ifdef _WIN32 #include - #include /* getcwd(), chdir(), etc. */ + #include /* getcwd(), chdir(), _mkdir(), etc. */ #define access _access + #define mkdir(dirname,perms) _mkdir(dirname) #define PATH_MAX _MAX_PATH #define NULL_DEVICE "NUL" #define DIRSEP '/' @@ -40,9 +41,11 @@ /* only does half the work for access() */ #ifndef F_OK #define F_OK 00 - #define X_OK 01 #define W_OK 02 - #define R_OK 04 + #endif + #ifndef R_OK + #define X_OK 01 + #define R_OK 04 #endif /* to make the permissions user specific we'd need to use CreateFile() */ #ifndef S_IRUSR