internal/glfw/glfw/glfw/src: remove warnings for Wayland

This commit is contained in:
Hajime Hoshi 2023-07-13 02:32:32 +09:00
parent e04b7a438a
commit 8ee3a6d0c1
2 changed files with 7 additions and 1 deletions

View File

@ -26,6 +26,10 @@
// It is fine to use C99 in this file because it will not be built with VS // It is fine to use C99 in this file because it will not be built with VS
//======================================================================== //========================================================================
#if !defined(_GNU_SOURCE)
#define _GNU_SOURCE
#endif
#define _POSIX_C_SOURCE 200809L #define _POSIX_C_SOURCE 200809L
#include "internal.h" #include "internal.h"

View File

@ -26,7 +26,9 @@
// It is fine to use C99 in this file because it will not be built with VS // It is fine to use C99 in this file because it will not be built with VS
//======================================================================== //========================================================================
#define _GNU_SOURCE #if !defined(_GNU_SOURCE)
#define _GNU_SOURCE
#endif
#include "internal.h" #include "internal.h"