eliminate glfw_native.h

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-07-08 13:06:16 -07:00
parent b119c63dd7
commit cfb49aa47d
2 changed files with 3 additions and 6 deletions

View file

@ -1,5 +0,0 @@
// MacOS: this must be defined for macOS 13.3 and older.
#define __kernel_ptr_semantics
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>

View file

@ -50,7 +50,9 @@ pub fn Native(comptime options: BackendOptions) type {
if (options.wayland) @cDefine("GLFW_EXPOSE_NATIVE_WAYLAND", "1"); if (options.wayland) @cDefine("GLFW_EXPOSE_NATIVE_WAYLAND", "1");
if (options.egl) @cDefine("GLFW_EXPOSE_NATIVE_EGL", "1"); if (options.egl) @cDefine("GLFW_EXPOSE_NATIVE_EGL", "1");
if (options.osmesa) @cDefine("GLFW_EXPOSE_NATIVE_OSMESA", "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 { return struct {