Move __MAC_12_0 define to a header file

This commit is contained in:
Jake Turner
2022-04-01 20:14:34 +01:00
committed by Baldur Karlsson
parent ea5cfa6e95
commit 8a95818b74
2 changed files with 5 additions and 5 deletions
@@ -28,11 +28,6 @@
#include "metal_library.h"
#include "metal_types_bridge.h"
// Define Mac SDK versions when compiling with earlier SDKs
#ifndef __MAC_12_0
#define __MAC_12_0 120000
#endif
// Bridge for MTLDevice
@implementation ObjCBridgeMTLDevice
@@ -38,3 +38,8 @@
METALCPP_WRAPPED_PROTOCOLS(DECLARE_OBJC_WRAPPED_INTERFACES)
#undef DECLARE_OBJC_WRAPPED_INTERFACES
// Define Mac SDK versions when compiling with earlier SDKs
#ifndef __MAC_12_0
#define __MAC_12_0 120000
#endif