aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2010-11-12 17:11:24 +0800
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-11-12 17:11:24 +0800
commit8d6f2ea7daa64c2c83cfb62a531ef566dc193ebc (patch)
tree9a8ae6bf8a0779ee557f71f9e531ee0ec51b8082 /plugins
parentb7ceebed8604005ff897f90dcf4b90dc495a6597 (diff)
downloadgsoc2013-evolution-8d6f2ea7daa64c2c83cfb62a531ef566dc193ebc.tar
gsoc2013-evolution-8d6f2ea7daa64c2c83cfb62a531ef566dc193ebc.tar.gz
gsoc2013-evolution-8d6f2ea7daa64c2c83cfb62a531ef566dc193ebc.tar.bz2
gsoc2013-evolution-8d6f2ea7daa64c2c83cfb62a531ef566dc193ebc.tar.lz
gsoc2013-evolution-8d6f2ea7daa64c2c83cfb62a531ef566dc193ebc.tar.xz
gsoc2013-evolution-8d6f2ea7daa64c2c83cfb62a531ef566dc193ebc.tar.zst
gsoc2013-evolution-8d6f2ea7daa64c2c83cfb62a531ef566dc193ebc.zip
Fix windows build of backup-restore plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/backup-restore/backup-restore.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/backup-restore/backup-restore.c b/plugins/backup-restore/backup-restore.c
index 1c6e0d0014..21b8436dff 100644
--- a/plugins/backup-restore/backup-restore.c
+++ b/plugins/backup-restore/backup-restore.c
@@ -39,6 +39,14 @@
#include "shell/e-shell-utils.h"
#include "shell/e-shell-window.h"
+#ifdef G_OS_WIN32
+#ifdef localtime_r
+#undef localtime_r
+#endif
+/* The localtime() in Microsoft's C library *is* thread-safe */
+#define localtime_r(timep, result) (localtime (timep) ? memcpy ((result), localtime (timep), sizeof (*(result))) : 0)
+#endif
+
gboolean e_plugin_ui_init (GtkUIManager *ui_manager,
EShellWindow *shell_window);