[tracker/tracker-0.6] Fix use of G_GOFFSET_FORMAT since we don't depend on glib 2.20 yet



commit 5021589cd7ba2e4c97a3044e6d9743a9f8f96138
Author: Martyn Russell <martyn imendio com>
Date:   Fri Jun 26 17:52:52 2009 +0100

    Fix use of G_GOFFSET_FORMAT since we don't depend on glib 2.20 yet

 src/libtracker-common/tracker-type-utils.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-type-utils.c b/src/libtracker-common/tracker-type-utils.c
index d21d5a1..500be3f 100644
--- a/src/libtracker-common/tracker-type-utils.c
+++ b/src/libtracker-common/tracker-type-utils.c
@@ -38,6 +38,11 @@
 
 #define DATE_FORMAT_ISO8601 "%Y-%m-%dT%H:%M:%S%z"
 
+/* Fix for < Glib 2.20. */
+#ifndef G_GOFFSET_FORMAT
+#define G_GOFFSET_FORMAT G_GINT64_FORMAT
+#endif /* G_GOFFSET_FORMAT */
+
 static const char *months[] = {
 	"Jan", "Feb", "Mar", "Apr", "May", "Jun",
 	"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]