aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-31 16:38:46 +0200
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-31 16:38:46 +0200
commitc7938266dadcdc3eb47533bd1b1422ec487fa788 (patch)
treee20e87b0680ca5665ee936b4ecc2e058bc1e54cb
parentuse TM_GMTOFF when it's present (diff)
make GNU expose tm_gmtoff and tm_zone
-rw-r--r--src/date.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/date.h b/src/date.h
index 6a3f73c..d4b0680 100644
--- a/src/date.h
+++ b/src/date.h
@@ -1,4 +1,10 @@
#pragma once
+// compatibility flags
+
+// GNU-ish systems require this to expose tm_gmtoff and tm_zone
+// this is important because of how we detect their existence
+#define _GNU_SOURCE 1
+
#include <janet.h>
#include <time.h>
#include "polyfill.h"