From 48e1a7648e606221d967c76d5b77efcc7129347e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 13 Apr 2019 02:30:00 +0200 Subject: [PATCH] posix 2001 --- client/ui.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/ui.h b/client/ui.h index ca235c11f..f08c704bb 100644 --- a/client/ui.h +++ b/client/ui.h @@ -11,6 +11,13 @@ #ifndef UI_H__ #define UI_H__ +/* Ensure gmtime_r, strtok_r is available even with -std=c99; must be included before + */ +#if !defined(_WIN32) +#define _POSIX_C_SOURCE 200112L +#endif + + #define _USE_MATH_DEFINES #include #include