r16622 - gnucash/trunk/src/backend/file - Glib 2.14 removed the pipe macro in gwin32.h, use _pipe instead.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Dec 8 12:20:02 EST 2007


Author: andi5
Date: 2007-12-08 12:20:02 -0500 (Sat, 08 Dec 2007)
New Revision: 16622
Trac: http://svn.gnucash.org/trac/changeset/16622

Modified:
   gnucash/trunk/src/backend/file/io-gncxml-v2.c
Log:
Glib 2.14 removed the pipe macro in gwin32.h, use _pipe instead.


Modified: gnucash/trunk/src/backend/file/io-gncxml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/io-gncxml-v2.c	2007-12-08 17:16:44 UTC (rev 16621)
+++ gnucash/trunk/src/backend/file/io-gncxml-v2.c	2007-12-08 17:20:02 UTC (rev 16622)
@@ -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