[grisbi-cvs] grisbi/src gsb_file_util.c,1.39,1.40

Mickaƫl Remars mykeul at users.sourceforge.net
Sat Jun 6 17:03:08 CEST 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20325

Modified Files:
	gsb_file_util.c 
Log Message:
Avoid calling gzdirect() on win32 (this functions does not exist in all versions of the lib).

Index: gsb_file_util.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_util.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- gsb_file_util.c	27 Apr 2009 19:41:03 -0000	1.39
+++ gsb_file_util.c	6 Jun 2009 15:03:06 -0000	1.40
@@ -127,11 +127,12 @@
     }
 
     orig_size = stat_buf.st_size;
-
+#ifndef _WIN32
     if (gzdirect (file))
 	/* the file is not compressed, keep the original size */
 	alloc_size = orig_size + 1;
     else
+#endif//_WIN32
 	/* the file is compressed, the final size should be about 20x more
 	 *  this is not completly true, if the file is compressed AND crypted,
 	 * the size doesn't really change. but i can't know here if the file is crypted



More information about the cvs mailing list