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:
commit
d039e9009e
|
@ -12,6 +12,10 @@ header = """\
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern \"C\" {
|
extern \"C\" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __APPLE__
|
||||||
|
typedef struct CAMetalLayerPrivate CAMetalLayer;
|
||||||
|
#endif
|
||||||
"""
|
"""
|
||||||
trailer = """\
|
trailer = """\
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue