summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2cppe/Gen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp
index b7ef56f7f29..58501535fd9 100644
--- a/cpp/src/slice2cppe/Gen.cpp
+++ b/cpp/src/slice2cppe/Gen.cpp
@@ -229,7 +229,9 @@ Slice::Gen::generate(const UnitPtr& p)
if(p->usesNonLocals())
{
C << "\n#include <IceE/BasicStream.h>";
- C << "\n#include <IceE/Object.h>";
+ C << "\n#ifndef ICEE_PURE_CLIENT";
+ C << "\n# include <IceE/Object.h>";
+ C << "\n#endif";
}
if(p->hasNonLocalExceptions())