aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/pst-import/pst-importer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c
index 96b0e68889..0af8fc43ef 100644
--- a/plugins/pst-import/pst-importer.c
+++ b/plugins/pst-import/pst-importer.c
@@ -60,6 +60,13 @@
#include <libpst/libpst.h>
#include <libpst/timeconv.h>
+#ifdef WIN32
+#ifdef gmtime_r
+#undef gmtime_r
+#endif
+#define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
+#endif
+
typedef struct _PstImporter PstImporter;
gint pst_init (pst_file *pst, gchar *filename);