diff options
author | Mark Spruiell <mes@zeroc.com> | 2001-12-18 13:33:35 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2001-12-18 13:33:35 +0000 |
commit | cfd3c5e6924221f16e1bd904f55f3df7f7d94848 (patch) | |
tree | 5ad5251ba74418449370d5a7ddace539a4e09864 /cpp/src | |
parent | IceStorm WIN32 updates. (diff) | |
download | ice-cfd3c5e6924221f16e1bd904f55f3df7f7d94848.tar.bz2 ice-cfd3c5e6924221f16e1bd904f55f3df7f7d94848.tar.xz ice-cfd3c5e6924221f16e1bd904f55f3df7f7d94848.zip |
Win32 fix
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 5527a4dbf3e..ee6f2298cb8 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -14,7 +14,14 @@ #include <sys/types.h> #include <sys/stat.h> + +#ifdef WIN32 +#include <direct.h> +#endif + +#ifndef WIN32 #include <unistd.h> +#endif using namespace std; using namespace Slice; @@ -461,8 +468,8 @@ Slice::JavaVisitor::writeThrowsClause(const string& scope, // Don't include local exceptions in the throws clause // ExceptionList::size_type localCount = 0; - count_if(throws.begin(), throws.end(), - ::IceUtil::memFun(&Exception::isLocal), localCount); + localCount = count_if(throws.begin(), throws.end(), + ::IceUtil::memFun(&Exception::isLocal)); Output& out = output(); if (throws.size() - localCount > 0) { |