Merge pull request #500 from AllenX2018/fix-issue426
fix issue #426: fix pipe function in MinGW
This commit is contained in:
commit
0eec0327be
@ -13,6 +13,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
#include <fcntl.h>
|
||||||
|
#define pipe(fds) _pipe(fds, 1024, _O_BINARY)
|
||||||
|
#endif
|
||||||
|
|
||||||
static int encode_null_callback(const char *buffer, size_t size, void *data)
|
static int encode_null_callback(const char *buffer, size_t size, void *data)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user