mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-02 22:14:29 +01:00
internal/glfw/glfw: add 'static' to C functions
This commit is contained in:
parent
eba8713c64
commit
a4c2072c0f
@ -8,10 +8,10 @@ package glfw
|
|||||||
|
|
||||||
// workaround wrappers needed due to a cgo and/or LLVM bug.
|
// workaround wrappers needed due to a cgo and/or LLVM bug.
|
||||||
// See: https://github.com/go-gl/glfw/issues/136
|
// See: https://github.com/go-gl/glfw/issues/136
|
||||||
void *workaround_glfwGetCocoaWindow(GLFWwindow *w) {
|
static void *workaround_glfwGetCocoaWindow(GLFWwindow *w) {
|
||||||
return (void *)glfwGetCocoaWindow(w);
|
return (void *)glfwGetCocoaWindow(w);
|
||||||
}
|
}
|
||||||
void *workaround_glfwGetNSGLContext(GLFWwindow *w) {
|
static void *workaround_glfwGetNSGLContext(GLFWwindow *w) {
|
||||||
return (void *)glfwGetNSGLContext(w);
|
return (void *)glfwGetNSGLContext(w);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user