aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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