From eba80ded344980ad30ca66d5c18fce53376b6ffd Mon Sep 17 00:00:00 2001 From: Colleague Riley Date: Sun, 14 Jan 2024 11:10:31 -0500 Subject: [PATCH] silicon update --- deps/silicon.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deps/silicon.h b/deps/silicon.h index 8b2cae0..f939eba 100644 --- a/deps/silicon.h +++ b/deps/silicon.h @@ -43,9 +43,15 @@ #define NS_ENUM(type, name) type name; enum +#ifndef GL_SILENCE_DEPRECATION +#define NS_OPENGL_DEPRECATED(minVers, maxVers) API_DEPRECATED("OpenGL API deprecated; please use Metal and MetalKit. (Define GL_SILENCE_DEPRECATION to silence these warnings.)", macos(minVers,maxVers)) +#define NS_OPENGL_ENUM_DEPRECATED(minVers, maxVers) API_DEPRECATED("OpenGL API deprecated; please use Metal and MetalKit. (Define GL_SILENCE_DEPRECATION to silence these warnings.)", macos(minVers,maxVers)) +#define NS_OPENGL_CLASS_DEPRECATED(message, minVers, maxVers) API_DEPRECATED(message, macos(minVers,maxVers)) +#else #define NS_OPENGL_DEPRECATED(minVers, maxVers) API_AVAILABLE(macos(minVers)) #define NS_OPENGL_ENUM_DEPRECATED(minVers, maxVers) API_AVAILABLE(macos(minVers)) #define NS_OPENGL_CLASS_DEPRECATED(message, minVers, maxVers) API_AVAILABLE(macos(minVers)) +#endif #ifdef __cplusplus #define APPKIT_EXTERN extern "C"