[grisbi-cvs] grisbi/src utils_dates.c,1.64,1.65

Gunee guneemwelloeux at users.sourceforge.net
Sun Jan 24 00:30:45 CET 2010


Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23012

Modified Files:
	utils_dates.c 
Log Message:
Fixed compatibility problem with MSVC

Index: utils_dates.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_dates.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- utils_dates.c	23 Jan 2010 13:46:13 -0000	1.64
+++ utils_dates.c	23 Jan 2010 23:30:43 -0000	1.65
@@ -303,6 +303,11 @@
     gchar **tab_date;
     gchar date_tokens [ 4 ] = { 0, 0, 0, 0 };
     int num_tokens = 0, num_fields = 0, i, j;
+#ifdef _MSC_VER
+	gchar * sreturn;
+	gchar ** tab_format;
+	int k = 0;
+#endif
 
     if ( !date_string
     ||
@@ -317,10 +322,6 @@
 
     /* Obtain date format tokens to compute order. */
 #ifdef _MSC_VER
-    gchar *sreturn;
-    gchar **tab_format;
-    int k;
-
 	sreturn = g_strnfill(81,'\0');
 	GetLocaleInfo(GetThreadLocale(), LOCALE_SSHORTDATE, sreturn, 80);
 	g_strcanon (sreturn, "dMy", '.');



More information about the cvs mailing list