Compare commits

...

4 Commits

Author SHA1 Message Date
WillyJL
0dfcbec0fc
Merge eb96b4aad5 into 63a7e8b7f8 2025-08-21 16:29:37 +02:00
Willy-JL
eb96b4aad5 Last missing _GNU_SOURCE 2024-11-22 05:59:44 +00:00
Willy-JL
80b7713126 Fix linux/input-event-codes.h when not present 2024-11-22 05:50:28 +00:00
Willy-JL
e3b41e1cf1 Fix time.h includes missing _GNU_SOURCE 2024-11-22 05:44:51 +00:00
5 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,8 @@
// //
//======================================================================== //========================================================================
#define _GNU_SOURCE
#if defined(_MSC_VER) #if defined(_MSC_VER)
// Make MS math.h define M_PI // Make MS math.h define M_PI
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES

View File

@ -25,6 +25,8 @@
// //
//======================================================================== //========================================================================
#define _GNU_SOURCE
#include "internal.h" #include "internal.h"
#if defined(GLFW_BUILD_LINUX_JOYSTICK) #if defined(GLFW_BUILD_LINUX_JOYSTICK)

View File

@ -25,6 +25,8 @@
// //
//======================================================================== //========================================================================
#define _GNU_SOURCE
#include "internal.h" #include "internal.h"
#if defined(GLFW_BUILD_POSIX_TIMER) #if defined(GLFW_BUILD_POSIX_TIMER)

View File

@ -24,6 +24,8 @@
// //
//======================================================================== //========================================================================
#define _GNU_SOURCE
#include "internal.h" #include "internal.h"
#if defined(_GLFW_WAYLAND) #if defined(_GLFW_WAYLAND)

View File

@ -40,7 +40,9 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/timerfd.h> #include <sys/timerfd.h>
#include <poll.h> #include <poll.h>
#if __has_include(<linux/input-event-codes.h>)
#include <linux/input-event-codes.h> #include <linux/input-event-codes.h>
#endif
#include "wayland-client-protocol.h" #include "wayland-client-protocol.h"
#include "xdg-shell-client-protocol.h" #include "xdg-shell-client-protocol.h"