Merge pull request #324 from pcwalton/metal-layer-non-macos

Provide a placeholder definition of `CAMetalLayer` in the C API.
This commit is contained in:
Patrick Walton 2020-05-08 14:18:00 -07:00 committed by GitHub
commit d039e9009e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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