mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
[start of port to win32/msvc] HAVE_UNIST_H and _pipe() only include
2007-12-03 Hans Breuer <hans@breuer.org> [start of port to win32/msvc] * gcancellable.c : HAVE_UNIST_H and _pipe() * gcontenttype.c : only include <dirent.h> in the UNIX branch * gdatainputstream.c : pointer arithmetic on void* is a gcc extension * gdummyfile.c glocalfileinputstream.c gsimpleasyncresult.c : use HAVE_UNIST_H * glocalfileoutputstream.c : use HAVE_UNIST_H and s/ssize_t/gssize/ * glocalvfs.c : use HAVE_PWD_H * gio.symbols : ifdef unix specific functions with G_OS_UNIX * makefile.msc : new file (maybe later converted to makefile.msc.in) * Makefile.am : added to EXTRA_DIST svn path=/trunk/; revision=6027
This commit is contained in:
@@ -21,9 +21,17 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
#include <gioerror.h>
|
||||
#ifdef G_OS_WIN32
|
||||
#include <io.h>
|
||||
#ifndef pipe
|
||||
#define pipe(fds) _pipe(fds, 4096, _O_BINARY)
|
||||
#endif
|
||||
#endif
|
||||
#include "gcancellable.h"
|
||||
#include "glibintl.h"
|
||||
|
||||
|
Reference in New Issue
Block a user