From 6cde0e7ceeb7a312189c29a571aac1fb88538fc6 Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Wed, 31 May 2023 17:21:04 +0200 Subject: do not use eggert/tz on MSVC I tried using windows and have given up. The errors are arcane, like what do you mean struct tm is an int?? --- project.janet | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/project.janet b/project.janet index 17954f8..e50627b 100644 --- a/project.janet +++ b/project.janet @@ -8,6 +8,11 @@ (declare-source :source ["date"]) +(def tz-source ["tz/localtime.c" + "tz/asctime.c" + "tz/difftime.c" + "tz/strftime.c"]) + (declare-native :name "date/native" :source ["src/main.c" @@ -16,7 +21,4 @@ "src/tm.c" "src/util.c" - "tz/localtime.c" - "tz/asctime.c" - "tz/difftime.c" - "tz/strftime.c"]) + ;(if (= :windows (os/which)) [] tz-source)]) -- cgit v1.2.3