aboutsummaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2013-02-05 14:21:21 +0100
committerVincent Richard <[email protected]>2013-02-05 14:21:21 +0100
commitc2474f2b2b581ddfd207095b4ee433757e2abfbf (patch)
treeff7350316f0da2ba53ab50bd356187763aa8eda3 /SConstruct
parentUpdated book. Added build target for HTML using HeVeA. (diff)
downloadvmime-c2474f2b2b581ddfd207095b4ee433757e2abfbf.tar.gz
vmime-c2474f2b2b581ddfd207095b4ee433757e2abfbf.zip
Check for localtime_r and gmtime_r at build instead of testing _REENTRANT. Use localtime_s and gmtime_s on Windows, if available.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 421d715f..cb974330 100644
--- a/SConstruct
+++ b/SConstruct
@@ -867,6 +867,10 @@ config_hpp.write("""
#define VMIME_HAVE_GETTID 0
#define VMIME_HAVE_SYSCALL 1
#define VMIME_HAVE_SYSCALL_GETTID 1
+#define VMIME_HAVE_LOCALTIME_R 1
+#define VMIME_HAVE_LOCALTIME_S 0
+#define VMIME_HAVE_GMTIME_R 1
+#define VMIME_HAVE_GMTIME_S 0
""")
config_hpp.write('\n')