Skip to content

Commit

Permalink
Remove warning/errors about undefined functions
Browse files Browse the repository at this point in the history
see go-gl#359

features.h needs `_GNU_SOURCE` to be set to allow stdlib.h to declare
the functions.
  • Loading branch information
metal3d committed Apr 23, 2024
1 parent a69d953 commit b28818f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3.3/glfw/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ package glfw
// Linux Build Tags
// ----------------
// GLFW Options:
#cgo linux,!wayland CFLAGS: -D_GLFW_X11
#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND
#cgo linux,!wayland CFLAGS: -D_GLFW_X11 -D_GNU_SOURCE
#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND -D_GNU_SOURCE
// Linker Options:
#cgo linux,!gles1,!gles2,!gles3,!vulkan LDFLAGS: -lGL
Expand Down

0 comments on commit b28818f

Please sign in to comment.