mirror of
https://github.com/zoriya/mach-glfw.git
synced 2026-06-01 10:05:21 +00:00
eliminate glfw_native.h
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
@@ -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>
|
||||
+3
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user