mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +03:00
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:
parent
fc810e363e
commit
02d1d9a4af
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user