summaryrefslogtreecommitdiff
path: root/cpp/src/slice2xsd/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2xsd/Main.cpp')
-rw-r--r--cpp/src/slice2xsd/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2xsd/Main.cpp b/cpp/src/slice2xsd/Main.cpp
index 43f041d7302..ce97a00c8a7 100644
--- a/cpp/src/slice2xsd/Main.cpp
+++ b/cpp/src/slice2xsd/Main.cpp
@@ -169,7 +169,7 @@ main(int argc, char* argv[])
test.close();
string cmd = cpp + " " + argv[idx];
-#ifdef WIN32
+#ifdef _WIN32
FILE* cppHandle = _popen(cmd.c_str(), "r");
#else
FILE* cppHandle = popen(cmd.c_str(), "r");
@@ -184,7 +184,7 @@ main(int argc, char* argv[])
UnitPtr unit = Unit::createUnit(false, false);
int parseStatus = unit->parse(cppHandle, debug);
-#ifdef WIN32
+#ifdef _WIN32
_pclose(cppHandle);
#else
pclose(cppHandle);