summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 6085dc7bc2c..d1effc81427 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -385,6 +385,10 @@ Slice::Gen::generate(const UnitPtr& p)
H << "\n#include <Ice/Proxy.h>";
H << "\n#include <Ice/OutgoingAsync.h>";
}
+ else if(p->hasNonLocalClassDecls())
+ {
+ H << "\n#include <Ice/Proxy.h>";
+ }
if(p->hasNonLocalDataOnlyClasses() || p->hasNonLocalExceptions())
{