From 0e539de89a04a047e2e295e9bedf1d0fa4edc344 Mon Sep 17 00:00:00 2001 From: Chris Brunner Date: Fri, 28 May 2010 21:11:00 +0000 Subject: [PATCH] support for _chdir in addition to the old (depreciated) chdir --- pandatool/src/mayaprogs/mayaToEgg_server.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandatool/src/mayaprogs/mayaToEgg_server.cxx b/pandatool/src/mayaprogs/mayaToEgg_server.cxx index fc1c6908c9..394313ce74 100755 --- a/pandatool/src/mayaprogs/mayaToEgg_server.cxx +++ b/pandatool/src/mayaprogs/mayaToEgg_server.cxx @@ -12,7 +12,7 @@ // //////////////////////////////////////////////////////////////////// -#ifdef WIN32_VC +#if defined(WIN32_VC) || defined(WIN64_VC) #include // for chdir #endif #include "mayaToEgg_server.h" @@ -452,7 +452,11 @@ poll() { buffers.push_back(buffer); } // Change to the client's current dir +#ifdef WIN64_VC + _chdir(cwd.c_str()); +#else chdir(cwd.c_str()); +#endif // Pass in the 'new' argc and argv we got from the client this->parse_command_line(argc, cargv);