Do not rely on glib having pipe() macro defined

master
Yevgen Muntyan 2007-06-14 00:00:56 -05:00
parent f2dca8f98a
commit b4cd452a2d
1 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,16 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef __WIN32__
#include <windows.h>
#endif
#ifdef __WIN32__
#ifndef pipe
#define pipe(phandles) _pipe (phandles, 4096, _O_BINARY)
#endif
#endif
typedef struct {
MooEventQueueCallback callback;