aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/date.c b/src/date.c
index 0429a6414..abea60cec 100644
--- a/src/date.c
+++ b/src/date.c
@@ -460,7 +460,7 @@ static sqlite3_int64 localtimeOffset(DateTime *p){
y.m = sLocal.tm_min;
y.s = sLocal.tm_sec;
}
-#elif defined(HAVE_LOCALTIME_S)
+#elif defined(HAVE_LOCALTIME_S) && HAVE_LOCALTIME_S
{
struct tm sLocal;
localtime_s(&sLocal, &t);