mirror of
https://github.com/libsdl-org/SDL
synced 2024-11-20 16:06:10 -07:00
Supress Metal warning when compiling against macOS 10.11-10.13
This commit is contained in:
parent
2a05b63580
commit
24bdbb8bf4
1 changed files with 3 additions and 0 deletions
|
@ -88,8 +88,11 @@ typedef void* MTLTexture_id;
|
|||
|
||||
typedef struct __IOSurface* IOSurfaceRef;
|
||||
#ifdef __OBJC__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability"
|
||||
@protocol MTLSharedEvent;
|
||||
typedef __unsafe_unretained id<MTLSharedEvent> MTLSharedEvent_id;
|
||||
#pragma clang diagnostic pop
|
||||
#else
|
||||
typedef void* MTLSharedEvent_id;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue