aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChloƩ Vulquin <code@toast.bunkerlabs.net>2024-03-09 18:52:42 +0100
committerChloƩ Vulquin <code@toast.bunkerlabs.net>2024-03-09 18:52:42 +0100
commit3e16aeb94538d20f40e54366e8f9fe3a0e22b56c (patch)
treed45aee780a4437157db4b8a42fbdbc455a6261eb /src
parentrelease 1.0.1 (diff)
fix build failure caused by GNU
Diffstat (limited to 'src')
-rw-r--r--src/compat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index a13c3ed..2c33ccd 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -1,10 +1,11 @@
#pragma once
-#include <time.h>
// 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 <time.h>
+
// timegm
#ifdef _MSC_VER
#define timegm _mkgmtime