diff options
Diffstat (limited to 'cpp/src/IcePatch2/OS.h')
-rw-r--r-- | cpp/src/IcePatch2/OS.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/IcePatch2/OS.h b/cpp/src/IcePatch2/OS.h index 3957c7c2813..9e86493d1aa 100644 --- a/cpp/src/IcePatch2/OS.h +++ b/cpp/src/IcePatch2/OS.h @@ -13,6 +13,7 @@ #include <Ice/Config.h> #include <sys/stat.h> #include <fcntl.h> +#include <stdio.h> #ifndef ICE_PATCH2_API # ifdef ICE_PATCH2_API_EXPORTS @@ -28,11 +29,13 @@ namespace OS #ifdef _WIN32 typedef struct _stat structstat; +#ifdef _MSC_VER # define O_RDONLY _O_RDONLY # define O_BINARY _O_BINARY # define S_ISDIR(mode) ((mode) & _S_IFDIR) # define S_ISREG(mode) ((mode) & _S_IFREG) +#endif #else |