* 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-861f7616d084master
parent
92e013e406
commit
9f9cc3b697
|
@ -29,6 +29,10 @@ using namespace std;
|
||||||
#define NOGDI
|
#define NOGDI
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
inline void set_env(const char* k, const char* v) { SetEnvironmentVariable(k, v); };
|
inline void set_env(const char* k, const char* v) { SetEnvironmentVariable(k, v); };
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define popen _popen
|
||||||
|
#define pclose _pclose
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
inline void set_env(const char* k, const char* v) { setenv(k, v, 1); };
|
inline void set_env(const char* k, const char* v) { setenv(k, v, 1); };
|
||||||
|
|
Loading…
Reference in New Issue