From a4c2072c0f7a989ad8bca5a4e71ae149879f2a3d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 8 Jul 2023 00:37:20 +0900 Subject: [PATCH] internal/glfw/glfw: add 'static' to C functions --- internal/glfw/glfw/native_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } */