summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/RubyUtil.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-08-30 19:24:39 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-08-30 19:24:39 +0000
commitdb58b73d407dc4c88d32744789bb5374a37ddbe4 (patch)
treee02864d26cbcdb56f429febebd5038c68e28fed9 /cpp/src/Slice/RubyUtil.cpp
parentAdded missing dependencies on Ice and IceUtil to simpleC and simpleS. (diff)
downloadice-db58b73d407dc4c88d32744789bb5374a37ddbe4.tar.bz2
ice-db58b73d407dc4c88d32744789bb5374a37ddbe4.tar.xz
ice-db58b73d407dc4c88d32744789bb5374a37ddbe4.zip
Added Makefile support for MSVC++
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r--cpp/src/Slice/RubyUtil.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index d9b4815b098..3eb6e2c43f3 100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -11,6 +11,10 @@
#include <Slice/Checksum.h>
#include <IceUtil/Functional.h>
+#ifdef __BCPLUSPLUS__
+#include <iterator>
+#endif
+
using namespace std;
using namespace Slice;
using namespace IceUtil;
@@ -530,7 +534,7 @@ Slice::Ruby::CodeVisitor::visitClassDefStart(const ClassDefPtr& p)
_out << nl << "end";
_classHistory.insert(scoped); // Avoid redundant declarations.
- _out << sp << nl << "T_" << name << ".defineClass(" << (p->isInterface() ? "nil" : name) << ", "
+ _out << sp << nl << "T_" << name << ".defineClass(" << (p->isInterface() ? string("nil") : name) << ", "
<< (p->isAbstract() ? "true" : "false") << ", ";
if(!base)
{