Skip to content

Commit

Permalink
Supress Metal warning when compiling against macOS 10.11-10.13
Browse files Browse the repository at this point in the history
  • Loading branch information
M. P. Halpin authored and slouken committed Oct 30, 2024
1 parent 2a05b63 commit 24bdbb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/khronos/vulkan/vulkan_metal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24bdbb8

Please # to comment.