From 9998fe49bd3ce864df83c60a5a7461a1a5174684 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 8 May 2020 14:05:58 -0700 Subject: [PATCH] Provide a placeholder definition of `CAMetalLayer` in the C API. Closes #260. --- c/cbindgen.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c/cbindgen.toml b/c/cbindgen.toml index 3d2de1f8..38119545 100644 --- a/c/cbindgen.toml +++ b/c/cbindgen.toml @@ -12,6 +12,10 @@ header = """\ #ifdef __cplusplus extern \"C\" { #endif + +#ifndef __APPLE__ +typedef struct CAMetalLayerPrivate CAMetalLayer; +#endif """ trailer = """\ #ifdef __cplusplus