diff --git a/v3.3/glfw/glfw/src/wl_window.c b/v3.3/glfw/glfw/src/wl_window.c index caa5188d..a690ecd8 100644 --- a/v3.3/glfw/glfw/src/wl_window.c +++ b/v3.3/glfw/glfw/src/wl_window.c @@ -26,7 +26,9 @@ // It is fine to use C99 in this file because it will not be built with VS //======================================================================== +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include "internal.h" @@ -3047,4 +3049,3 @@ GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* handle) _GLFW_REQUIRE_INIT_OR_RETURN(NULL); return window->wl.surface; } - diff --git a/v3.3/glfw/glfw/src/x11_window.c b/v3.3/glfw/glfw/src/x11_window.c index ef02f139..af410639 100644 --- a/v3.3/glfw/glfw/src/x11_window.c +++ b/v3.3/glfw/glfw/src/x11_window.c @@ -27,7 +27,9 @@ // It is fine to use C99 in this file because it will not be built with VS //======================================================================== +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include "internal.h" @@ -3234,4 +3236,3 @@ GLFWAPI const char* glfwGetX11SelectionString(void) _GLFW_REQUIRE_INIT_OR_RETURN(NULL); return getSelectionString(_glfw.x11.PRIMARY); } -