diff options
| author | 2024-03-09 18:52:42 +0100 | |
|---|---|---|
| committer | 2024-03-09 18:52:42 +0100 | |
| commit | 3e16aeb94538d20f40e54366e8f9fe3a0e22b56c (patch) | |
| tree | d45aee780a4437157db4b8a42fbdbc455a6261eb | |
| parent | release 1.0.1 (diff) | |
fix build failure caused by GNU
| -rw-r--r-- | src/compat.h | 3 |
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 |
