Update cgo

This commit is contained in:
Milan Nikolic 2024-02-26 09:29:23 +01:00
parent 83c4beb421
commit caf96ad1c0
No known key found for this signature in database
GPG key ID: 9229D0EAA3AA4E75
5 changed files with 25 additions and 39 deletions

View file

@ -23,6 +23,10 @@ package rl
#include "external/glfw/src/egl_context.c"
#include "external/glfw/src/osmesa_context.c"
GLFWbool _glfwConnectNull(int platformID, _GLFWplatform* platform) {
return GLFW_TRUE;
}
#cgo darwin LDFLAGS: -framework Cocoa -framework IOKit -framework CoreVideo -framework CoreFoundation
#cgo darwin CFLAGS: -x objective-c -Iexternal/glfw/include -D_GLFW_COCOA -D_GLFW_USE_CHDIR -D_GLFW_USE_MENUBAR -D_GLFW_USE_RETINA -Wno-deprecated-declarations -Wno-implicit-const-int-float-conversion -DPLATFORM_DESKTOP