From 0a8c303685c69c8c57be237305eeb253579eb6a2 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 13 Apr 2019 02:49:15 +0200 Subject: [PATCH] move defines --- client/ui.c | 6 ++++++ client/ui.h | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/client/ui.c b/client/ui.c index 4dbace3c8..4167625da 100644 --- a/client/ui.c +++ b/client/ui.c @@ -9,6 +9,12 @@ // UI utilities //----------------------------------------------------------------------------- +/* Ensure strtok_r is available even with -std=c99; must be included before + */ +#if !defined(_WIN32) +#define _POSIX_C_SOURCE 200112L +#endif + #include "ui.h" double CursorScaleFactor = 1; diff --git a/client/ui.h b/client/ui.h index f08c704bb..ca235c11f 100644 --- a/client/ui.h +++ b/client/ui.h @@ -11,13 +11,6 @@ #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