summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/Activator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceGrid/Activator.cpp')
-rw-r--r--cpp/src/IceGrid/Activator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/Activator.cpp b/cpp/src/IceGrid/Activator.cpp
index aad9b15b64f..3c5cf1b5dcd 100644
--- a/cpp/src/IceGrid/Activator.cpp
+++ b/cpp/src/IceGrid/Activator.cpp
@@ -482,7 +482,11 @@ Activator::activate(const string& name,
//
// Make a copy of the command line.
//
+#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+ char* cmdbuf = _strdup(cmd.c_str());
+#else
char* cmdbuf = strdup(cmd.c_str());
+#endif
//
// Create the environment block for the child process. We start with the environment