internal/glfw/glfw: add 'static' to C functions

This commit is contained in:
Hajime Hoshi 2023-07-08 00:37:20 +09:00
parent eba8713c64
commit a4c2072c0f

View File

@ -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);
}
*/