From c2474f2b2b581ddfd207095b4ee433757e2abfbf Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 5 Feb 2013 14:21:21 +0100 Subject: Check for localtime_r and gmtime_r at build instead of testing _REENTRANT. Use localtime_s and gmtime_s on Windows, if available. --- cmake/config.hpp.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') diff --git a/cmake/config.hpp.cmake b/cmake/config.hpp.cmake index 8e7f727d..3d9aba92 100644 --- a/cmake/config.hpp.cmake +++ b/cmake/config.hpp.cmake @@ -63,6 +63,10 @@ typedef unsigned @VMIME_32BIT_TYPE@ vmime_uint32; #cmakedefine01 VMIME_HAVE_GETTID #cmakedefine01 VMIME_HAVE_SYSCALL #cmakedefine01 VMIME_HAVE_SYSCALL_GETTID +#cmakedefine01 VMIME_HAVE_GMTIME_S +#cmakedefine01 VMIME_HAVE_GMTIME_R +#cmakedefine01 VMIME_HAVE_LOCALTIME_S +#cmakedefine01 VMIME_HAVE_LOCALTIME_R #define VMIME_SENDMAIL_PATH "@VMIME_SENDMAIL_PATH@" -- cgit v1.2.3