* When compiling AutoRevision on MSVC make sure to #define popen and pclose as _popen and _pclose respectively

Fix provided by Buginator in bug #10269


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2743 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-11-06 14:32:17 +00:00
parent 92e013e406
commit 9f9cc3b697
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ using namespace std;
#define NOGDI
#include <windows.h>
inline void set_env(const char* k, const char* v) { SetEnvironmentVariable(k, v); };
#ifdef _MSC_VER
#define popen _popen
#define pclose _pclose
#endif
#else
#include <stdlib.h>
inline void set_env(const char* k, const char* v) { setenv(k, v, 1); };