diff options
Diffstat (limited to 'cpp/include/IceUtil/FileUtil.h')
-rw-r--r-- | cpp/include/IceUtil/FileUtil.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/FileUtil.h b/cpp/include/IceUtil/FileUtil.h index 7d5c478834d..ed07ceab344 100644 --- a/cpp/include/IceUtil/FileUtil.h +++ b/cpp/include/IceUtil/FileUtil.h @@ -54,12 +54,22 @@ typedef struct _stat64i32 structstat; #endif #ifdef _MSC_VER +#ifndef O_RDONLY # define O_RDONLY _O_RDONLY +#endif + +#ifndef O_BINARY # define O_BINARY _O_BINARY +#endif +#ifndef S_ISDIR # define S_ISDIR(mode) ((mode) & _S_IFDIR) +#endif + +#ifndef S_ISREG # define S_ISREG(mode) ((mode) & _S_IFREG) #endif +#endif #else |