summaryrefslogtreecommitdiff
path: root/libslab/bookmark-agent.h
diff options
context:
space:
mode:
Diffstat (limited to 'libslab/bookmark-agent.h')
-rw-r--r--libslab/bookmark-agent.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libslab/bookmark-agent.h b/libslab/bookmark-agent.h
index 409509e1..f54415bf 100644
--- a/libslab/bookmark-agent.h
+++ b/libslab/bookmark-agent.h
@@ -21,10 +21,13 @@
#ifndef __BOOKMARK_AGENT_H__
#define __BOOKMARK_AGENT_H__
-#include <time.h>
#include <glib.h>
#include <glib-object.h>
+#if !GLIB_CHECK_VERSION(2,66,0)
+#include <time.h>
+#endif
+
G_BEGIN_DECLS
#define BOOKMARK_AGENT_TYPE (bookmark_agent_get_type ())
@@ -41,7 +44,11 @@ typedef struct {
gchar *uri;
gchar *title;
gchar *mime_type;
+#if GLIB_CHECK_VERSION(2,66,0)
GDateTime *mtime;
+#else
+ time_t mtime;
+#endif
gchar *icon;
gchar *app_name;
gchar *app_exec;