[gtk+/gtk-2.90] Fix build on Windows
- From: Christian Dywan <cdywan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2.90] Fix build on Windows
- Date: Fri, 16 Oct 2009 14:03:33 +0000 (UTC)
commit 8609c7907608724ce37f7b1788e6377d8450fce3
Author: Tor Lillqvist <tml iki fi>
Date: Fri Oct 16 13:29:54 2009 +0300
Fix build on Windows
gtk/gtkfilechooserdefault.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index d026a8c..6a3706d 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -6500,6 +6500,11 @@ my_g_format_time_for_display (glong secs)
gchar *locale_format = NULL;
gchar buf[256];
char *date_str = NULL;
+#ifdef G_OS_WIN32
+ const char *locale, *dot = NULL;
+ gint64 codepage = -1;
+ char charset[20];
+#endif
time_mtime = secs;
@@ -6507,7 +6512,7 @@ my_g_format_time_for_display (glong secs)
localtime_r ((time_t *) &time_mtime, &tm_mtime);
#else
{
- struct tm *ptm = localtime ((time_t *) &timeval.tv_sec);
+ struct tm *ptm = localtime ((time_t *) &time_mtime);
if (!ptm)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]