diff options
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 40e0df6c46b..99b04f2e46c 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -6,16 +6,18 @@ // ICE_LICENSE file included in this distribution. // // ********************************************************************** - +
#include <Slice/Preprocessor.h> #include <algorithm> #include <fstream> +
#include <sys/types.h> #include <sys/stat.h> #ifndef _WIN32 +
# include <sys/wait.h> #endif @@ -274,7 +276,7 @@ Slice::Preprocessor::close() { assert(_cppHandle); -#ifndef WIN32 +#ifndef _WIN32 int status = pclose(_cppHandle); _cppHandle = 0; @@ -326,7 +328,7 @@ Slice::Preprocessor::checkInputFile() string Slice::Preprocessor::searchIceCpp() { -#ifndef WIN32 +#ifndef _WIN32 const char* icecpp = "icecpp"; #else const char* icecpp = "icecpp.exe"; @@ -341,7 +343,7 @@ Slice::Preprocessor::searchIceCpp() struct stat st; if(stat(path.c_str(), &st) == 0) { -#ifndef WIN32 +#ifndef _WIN32 if(st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)) #else if(st.st_mode & (S_IEXEC)) |