Provide a placeholder definition of `CAMetalLayer` in the C API.

Closes #260.
This commit is contained in:
Patrick Walton 2020-05-08 14:05:58 -07:00
parent d3ceef749f
commit 9998fe49bd
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ header = """\
#ifdef __cplusplus
extern \"C\" {
#endif
#ifndef __APPLE__
typedef struct CAMetalLayerPrivate CAMetalLayer;
#endif
"""
trailer = """\
#ifdef __cplusplus