diff --git a/osdep/mac/compat.h b/osdep/mac/compat.h index 43a1a3b1ea..3f9d9fc2e0 100644 --- a/osdep/mac/compat.h +++ b/osdep/mac/compat.h @@ -19,6 +19,10 @@ #include "config.h" +#ifndef GL_SILENCE_DEPRECATION +#define GL_SILENCE_DEPRECATION +#endif + #if !HAVE_MACOS_12_FEATURES #define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster #endif diff --git a/video/out/hwdec/hwdec_mac_gl.c b/video/out/hwdec/hwdec_mac_gl.c index b73f5b967d..9c3ff5d4d6 100644 --- a/video/out/hwdec/hwdec_mac_gl.c +++ b/video/out/hwdec/hwdec_mac_gl.c @@ -19,6 +19,8 @@ #include +#include "osdep/mac/compat.h" + #include #include #include