This commit is contained in:
AllenX2018 2019-10-08 16:19:40 +08:00
parent 672b6df474
commit 78ea35c8e9

View File

@ -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)
{ {