From e3b41e1cf108b5dab104cb0f7b1a3b32729c25f8 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Fri, 22 Nov 2024 05:44:51 +0000 Subject: [PATCH] Fix `time.h` includes missing `_GNU_SOURCE` --- examples/particles.c | 2 ++ src/posix_time.c | 2 ++ src/wl_init.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/examples/particles.c b/examples/particles.c index baafe826..7a896a62 100644 --- a/examples/particles.c +++ b/examples/particles.c @@ -24,6 +24,8 @@ // //======================================================================== +#define _GNU_SOURCE + #if defined(_MSC_VER) // Make MS math.h define M_PI #define _USE_MATH_DEFINES diff --git a/src/posix_time.c b/src/posix_time.c index 4d7bd7ce..2d2b1561 100644 --- a/src/posix_time.c +++ b/src/posix_time.c @@ -25,6 +25,8 @@ // //======================================================================== +#define _GNU_SOURCE + #include "internal.h" #if defined(GLFW_BUILD_POSIX_TIMER) diff --git a/src/wl_init.c b/src/wl_init.c index 76054bc6..cba68bad 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -24,6 +24,8 @@ // //======================================================================== +#define _GNU_SOURCE + #include "internal.h" #if defined(_GLFW_WAYLAND)