diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-12-07 15:02:47 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-12-07 15:02:47 +0100 |
commit | 9582570874c402cb8f733d29f37dfc798cb83841 (patch) | |
tree | 4899d11a01cb4ca9d049e837dba3a0b80700b5b9 /cpp/src/slice2cpp/Gen.cpp | |
parent | Fixed for fileLock tests (diff) | |
download | ice-9582570874c402cb8f733d29f37dfc798cb83841.tar.bz2 ice-9582570874c402cb8f733d29f37dfc798cb83841.tar.xz ice-9582570874c402cb8f733d29f37dfc798cb83841.zip |
Fixed VC6 compilation errors
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 3533a2a790b..1a40799f4ac 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -6382,7 +6382,17 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) H << eb; H << nl << "void __sent(bool sentSynchronously)"; H << sb; + H.zeroIndent(); + H << nl << "#if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug"; // COMPILERBUG + H.restoreIndent(); + H << nl << "AMICallbackBase::__sent(sentSynchronously);"; + H.zeroIndent(); + H << nl << "#else"; + H.restoreIndent(); H << nl << "::Ice::AMICallbackBase::__sent(sentSynchronously);"; + H.zeroIndent(); + H << nl << "#endif"; + H.restoreIndent(); H << eb; H << eb << ';'; H << sp << nl << "typedef ::IceUtil::Handle< " << classScopedAMI << '_' << name << "> " << classNameAMI |