[evolution] [win32] Fix a build breakage by adding a proper define for gmtime_r instead of the broken one that u
- From: Fridrich Strba <strba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] [win32] Fix a build breakage by adding a proper define for gmtime_r instead of the broken one that u
- Date: Thu, 15 Apr 2010 14:01:11 +0000 (UTC)
commit 140341c97f6a0b8f8bc848b2e74718f498d5467a
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date: Thu Apr 15 15:59:52 2010 +0200
[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 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c
index 96b0e68..0af8fc4 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]