diff --git a/src/glfw_native.h b/src/glfw_native.h deleted file mode 100644 index 70ea48d..0000000 --- a/src/glfw_native.h +++ /dev/null @@ -1,5 +0,0 @@ -// MacOS: this must be defined for macOS 13.3 and older. -#define __kernel_ptr_semantics - -#include -#include diff --git a/src/native.zig b/src/native.zig index d2adc3a..e9d60d8 100644 --- a/src/native.zig +++ b/src/native.zig @@ -50,7 +50,9 @@ pub fn Native(comptime options: BackendOptions) type { if (options.wayland) @cDefine("GLFW_EXPOSE_NATIVE_WAYLAND", "1"); if (options.egl) @cDefine("GLFW_EXPOSE_NATIVE_EGL", "1"); if (options.osmesa) @cDefine("GLFW_EXPOSE_NATIVE_OSMESA", "1"); - @cInclude("glfw_native.h"); + @cDefine("__kernel_ptr_semantics", ""); + @cInclude("GLFW/glfw3.h"); + @cInclude("GLFW/glfw3native.h"); }); return struct {