diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-05-11 17:50:09 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-05-11 17:50:09 -0400 |
commit | ff76da01915482dc5c5bcc693789642882958d64 (patch) | |
tree | b57639e7490f850fbec23c50f159c408689234e5 /cpp/include/IceUtil/FileUtil.h | |
parent | cleaning up stream API in C++/Java/JS (diff) | |
download | ice-ff76da01915482dc5c5bcc693789642882958d64.tar.bz2 ice-ff76da01915482dc5c5bcc693789642882958d64.tar.xz ice-ff76da01915482dc5c5bcc693789642882958d64.zip |
IceUtil and Slice msbuild updates
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 |