summaryrefslogtreecommitdiff
path: root/cpp/src/slice2vb/Gen.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-08-08 16:37:13 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-08-08 16:37:13 +0000
commit914c0791dffe34b5542f753d495435b64986c6b7 (patch)
treed438f0e243fd61c3b78b82bf1dd51670517534e7 /cpp/src/slice2vb/Gen.cpp
parentAdding payload to TAO latency (only for one test type) (diff)
downloadice-914c0791dffe34b5542f753d495435b64986c6b7.tar.bz2
ice-914c0791dffe34b5542f753d495435b64986c6b7.tar.xz
ice-914c0791dffe34b5542f753d495435b64986c6b7.zip
Fixed VC6 compile errors
Diffstat (limited to 'cpp/src/slice2vb/Gen.cpp')
-rwxr-xr-xcpp/src/slice2vb/Gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2vb/Gen.cpp b/cpp/src/slice2vb/Gen.cpp
index a774b3b118f..ed0a1a92632 100755
--- a/cpp/src/slice2vb/Gen.cpp
+++ b/cpp/src/slice2vb/Gen.cpp
@@ -12,7 +12,7 @@
#include <Gen.h>
#include <limits>
#include <sys/stat.h>
-#ifndef _MSC_VER
+#ifndef _WIN32
#include <unistd.h>
#else
#include <direct.h>
@@ -5695,7 +5695,7 @@ Slice::Gen::BaseImplVisitor::writeValue(const TypePtr& type)
StructPtr st = StructPtr::dynamicCast(type);
if(st)
{
- return st->hasMetaData("clr:class") ? "Nothing" : "New " + fixId(st->scoped()) + "()";
+ return st->hasMetaData("clr:class") ? string("Nothing") : "New " + fixId(st->scoped()) + "()";
}
return "Nothing";