mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
e920e4c677
commit
dd6bc3f3fa
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user