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