From 691ee1b84c51ae625ed1aafebc915d3db3d63d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Co=C5=9Fku=20Ba=C5=9F?= Date: Sun, 14 Oct 2018 09:16:58 +0300 Subject: [PATCH] Enable GCC GNU extensions on X11 --- v3.2/glfw/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3.2/glfw/build.go b/v3.2/glfw/build.go index 0f62dc2d..96bd79c0 100644 --- a/v3.2/glfw/build.go +++ b/v3.2/glfw/build.go @@ -22,7 +22,7 @@ package glfw // Linux Build Tags // ---------------- // GLFW Options: -#cgo linux,!wayland CFLAGS: -D_GLFW_X11 +#cgo linux,!wayland CFLAGS: -D_GLFW_X11 -D_GNU_SOURCE #cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND -D_GNU_SOURCE // Linker Options: