fix MSVC build regressions

This commit is contained in:
Joel Dice
2011-01-21 16:14:21 -07:00
parent 0cc6156932
commit 220f7760b7
6 changed files with 17 additions and 8 deletions

View File

@ -37,10 +37,12 @@
# define OPEN_MASK O_BINARY
# ifdef _MSC_VER
# define S_ISREG(x) ((x) | _S_IFREG)
# define S_ISDIR(x) ((x) | _S_IFDIR)
# define S_ISREG(x) ((x) & _S_IFREG)
# define S_ISDIR(x) ((x) & _S_IFDIR)
# define S_IRUSR _S_IREAD
# define S_IWUSR _S_IWRITE
# define W_OK 2
# define R_OK 4
# else
# define OPEN _wopen
# define CREAT _wcreat