From 140341c97f6a0b8f8bc848b2e74718f498d5467a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fridrich=20=C5=A0trba?= Date: Thu, 15 Apr 2010 15:59:52 +0200 Subject: [win32] Fix a build breakage by adding a proper define for gmtime_r instead of the broken one that used to be pulled by including pthread.h --- plugins/pst-import/pst-importer.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 #include +#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); -- cgit v1.2.3