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.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 4f14a7bd3c3..d4904cd6ba1 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -646,7 +646,7 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p)
C << nl << "while (sz--)";
C << sb;
C.zeroIndent();
- C << nl << "#ifdef WIN32"; // STLBUG
+ C << nl << "#ifdef _WIN32"; // STLBUG
C.restoreIndent();
C << nl << "v.push_back(" << typeToString(type) << "());";
C.zeroIndent();
@@ -680,7 +680,7 @@ Slice::Gen::TypesVisitor::visitSequence(const SequencePtr& p)
C << nl << "while (sz--)";
C << sb;
C.zeroIndent();
- C << nl << "#ifdef WIN32"; // STLBUG
+ C << nl << "#ifdef _WIN32"; // STLBUG
C.restoreIndent();
C << nl << "v.push_back(" << typeToString(type) << "());";
C.zeroIndent();
@@ -944,7 +944,7 @@ Slice::Gen::TypesVisitor::emitExceptionBase(const ExceptionPtr& base, const std:
if (base)
{
C.zeroIndent();
- C << nl << "#ifdef WIN32"; // COMPILERBUG
+ C << nl << "#ifdef _WIN32"; // COMPILERBUG
C.restoreIndent();
C << nl << base->name() << "::" << call << ";";
C.zeroIndent();
@@ -2329,7 +2329,7 @@ Slice::Gen::ObjectVisitor::emitClassBase(const ClassDefPtr& base, const std::str
if (base)
{
C.zeroIndent();
- C << nl << "#ifdef WIN32"; // COMPILERBUG
+ C << nl << "#ifdef _WIN32"; // COMPILERBUG
C.restoreIndent();
C << nl << base->name() << "::" << call << ";";
C.zeroIndent();
@@ -2343,7 +2343,7 @@ Slice::Gen::ObjectVisitor::emitClassBase(const ClassDefPtr& base, const std::str
else
{
C.zeroIndent();
- C << nl << "#ifdef WIN32"; // COMPILERBUG
+ C << nl << "#ifdef _WIN32"; // COMPILERBUG
C.restoreIndent();
C << nl << "Object::" << call << ";";
C.zeroIndent();