Don't work around missing popen() in MinGW.

Windows does not have popen()/pclose(), so FileHandler.cpp #define's them to
_popen()/_pclose().  But MinGW has similar macros built into <cstdio>, leading
to warnings.  So skip the workaround on MinGW.
This commit is contained in:
Jeroen Vermeulen 2015-04-22 11:24:32 +07:00
parent fc810e363e
commit 02d1d9a4af

View File

@ -1,7 +1,9 @@
#include "FileHandler.h"
#include <cstdio>
#ifdef WIN32
// Workaround: plain Windows does not have popen()/pclose().
// (MinGW already #define's them, so skip the workaround there.)
#if defined(WIN32) && !defined(__MINGW32__)
#define popen(A, B) _popen(A, B)
#define pclose(A) _pclose(A)
#endif