[grisbi-cvs] grisbi/src gsb_file_load.c,1.187,1.188

Mickaƫl Remars mykeul at users.sourceforge.net
Mon Aug 24 16:05:12 CEST 2009


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

Modified Files:
	gsb_file_load.c 
Log Message:
msvc needs all variable declarations at the begining of the blocs (C99)

Index: gsb_file_load.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_file_load.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -d -r1.187 -r1.188
--- gsb_file_load.c	16 Aug 2009 21:00:05 -0000	1.187
+++ gsb_file_load.c	24 Aug 2009 14:05:10 -0000	1.188
@@ -8066,6 +8066,10 @@
 {
     if ( g_str_has_suffix (filename, ".gsb" ) )
     {
+#if GLIB_CHECK_VERSION (2,18,0)
+        GFile * file_ori;
+        GFile * file_copy;
+#endif//GLIB_CHECK_VERSION (2,18,0)
         GError * error = NULL;
 
         copy_old_filename = g_path_get_basename ( filename );
@@ -8076,9 +8080,6 @@
                         copy_old_filename, NULL );
 
 #if GLIB_CHECK_VERSION (2,18,0)
-        GFile * file_ori;
-        GFile * file_copy;
-
         file_ori = g_file_new_for_path ( filename );
         file_copy = g_file_new_for_path ( copy_old_filename );
         if ( !g_file_copy ( file_ori, file_copy, G_FILE_COPY_OVERWRITE, 



More information about the cvs mailing list