[grisbi-cvs] grisbi/src utils_dates.c,1.56,1.57
Mickaƫl Remars
mykeul at users.sourceforge.net
Mon Aug 24 20:59:48 CEST 2009
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24822
Modified Files:
utils_dates.c
Log Message:
* msvc needs all variable declarations at the begining of the blocs (C99)
* do not include <langinfo.h> on WIN32
Index: utils_dates.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/utils_dates.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- utils_dates.c 13 Aug 2009 19:24:49 -0000 1.56
+++ utils_dates.c 24 Aug 2009 18:59:46 -0000 1.57
@@ -22,7 +22,9 @@
/* ************************************************************************** */
#include "include.h"
-#include <langinfo.h>
+#ifndef _WIN32
+# include <langinfo.h>
+#endif//_WIN32
/*START_INCLUDE*/
#include "utils_dates.h"
@@ -179,12 +181,13 @@
if ( strlen (string))
{
GDate *date;
+ gchar* tmpstr;
date = gsb_date_get_last_entry_date ( string );
if (!date)
return FALSE;
- gchar* tmpstr = gsb_format_gdate (date);
+ tmpstr = gsb_format_gdate (date);
gtk_entry_set_text ( GTK_ENTRY ( entry ), tmpstr);
if ( buffer_entry_date == NULL )
buffer_entry_date = g_malloc0 ( sizeof (struct struct_last_entry_date) );
More information about the cvs
mailing list