diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-07-11 18:10:40 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-07-11 18:10:40 +0000 |
commit | 5611579110ed0c87336894a0ad1ab6fdad149644 (patch) | |
tree | a75c3d6e99a2e0b92151ce3a61c3a5b19f221a98 /cpp/src/Slice/Preprocessor.cpp | |
parent | Added Ice.Warn.Endpoints (diff) | |
download | ice-5611579110ed0c87336894a0ad1ab6fdad149644.tar.bz2 ice-5611579110ed0c87336894a0ad1ab6fdad149644.tar.xz ice-5611579110ed0c87336894a0ad1ab6fdad149644.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=397
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)) |