diff options
| author | 2023-05-31 16:38:46 +0200 | |
|---|---|---|
| committer | 2023-05-31 16:38:46 +0200 | |
| commit | c7938266dadcdc3eb47533bd1b1422ec487fa788 (patch) | |
| tree | e20e87b0680ca5665ee936b4ecc2e058bc1e54cb | |
| parent | use TM_GMTOFF when it's present (diff) | |
make GNU expose tm_gmtoff and tm_zone
| -rw-r--r-- | src/date.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |
