r16666 - gnucash/branches/2.2/src/backend/file - [r16622] Glib 2.14 removed the pipe macro in gwin32.h, use _pipe instead.
Andreas Köhler
andi5 at cvs.gnucash.org
Sun Dec 16 08:24:25 EST 2007
Author: andi5
Date: 2007-12-16 08:24:25 -0500 (Sun, 16 Dec 2007)
New Revision: 16666
Trac: http://svn.gnucash.org/trac/changeset/16666
Modified:
gnucash/branches/2.2/src/backend/file/io-gncxml-v2.c
Log:
[r16622] Glib 2.14 removed the pipe macro in gwin32.h, use _pipe instead.
Modified: gnucash/branches/2.2/src/backend/file/io-gncxml-v2.c
===================================================================
--- gnucash/branches/2.2/src/backend/file/io-gncxml-v2.c 2007-12-16 13:06:57 UTC (rev 16665)
+++ gnucash/branches/2.2/src/backend/file/io-gncxml-v2.c 2007-12-16 13:24:25 UTC (rev 16666)
@@ -1313,7 +1313,11 @@
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);
}
More information about the gnucash-changes
mailing list