Glib 2.14 removed the pipe macro in gwin32.h, use _pipe instead.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16622 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-12-08 17:20:02 +00:00
parent e920e4c677
commit dd6bc3f3fa

View File

@ -1313,7 +1313,11 @@ try_gz_open (const char *filename, const char *perms, gboolean use_gzip,
gz_thread_params_t *params;
FILE *file;
#ifdef G_OS_WIN32
if (_pipe(filedes, 4096, _O_BINARY) < 0) {
#else
if (pipe(filedes) < 0) {
#endif
g_warning("Pipe call failed. Opening uncompressed file.");
return g_fopen(filename, perms);
}