aboutsummaryrefslogtreecommitdiff
path: root/project.janet
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-31 17:21:04 +0200
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-31 17:21:04 +0200
commit6cde0e7ceeb7a312189c29a571aac1fb88538fc6 (patch)
tree4bb292f3bcc4659eaebbf25855f5b21fdb06cf08 /project.janet
parentdo not provide source info or documentation on windows (diff)
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??
Diffstat (limited to 'project.janet')
-rw-r--r--project.janet10
1 files 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)])