diff --git a/internal/glfw/glfw/native_darwin.go b/internal/glfw/glfw/native_darwin.go index 891827b1e..6ccbeaa15 100644 --- a/internal/glfw/glfw/native_darwin.go +++ b/internal/glfw/glfw/native_darwin.go @@ -8,10 +8,10 @@ package glfw // workaround wrappers needed due to a cgo and/or LLVM bug. // See: https://github.com/go-gl/glfw/issues/136 -void *workaround_glfwGetCocoaWindow(GLFWwindow *w) { +static void *workaround_glfwGetCocoaWindow(GLFWwindow *w) { return (void *)glfwGetCocoaWindow(w); } -void *workaround_glfwGetNSGLContext(GLFWwindow *w) { +static void *workaround_glfwGetNSGLContext(GLFWwindow *w) { return (void *)glfwGetNSGLContext(w); } */