diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-04-15 21:59:52 +0800 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-04-15 21:59:52 +0800 |
commit | 140341c97f6a0b8f8bc848b2e74718f498d5467a (patch) | |
tree | 268df8db1943c19615f8bee5c7e10e73a82b9550 | |
parent | 200f6ec5e4d4aa45589a381acd42651fd54cecc3 (diff) | |
download | gsoc2013-evolution-140341c97f6a0b8f8bc848b2e74718f498d5467a.tar.gz gsoc2013-evolution-140341c97f6a0b8f8bc848b2e74718f498d5467a.tar.zst gsoc2013-evolution-140341c97f6a0b8f8bc848b2e74718f498d5467a.zip |
[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
-rw-r--r-- | 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 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); |