From 1e98fc325dafc6dd464f5c1482e4ba99e5f3b553 Mon Sep 17 00:00:00 2001 From: Stephen Gowen Date: Tue, 19 Jan 2021 11:31:15 -0600 Subject: [PATCH] Cocoa: Fix macro redefinition warning This avoids generating a macro redefinition warning when the GL_SILENCE_DEPRECATION macro has been defined for the whole of a larger project. Closes #1840. (cherry picked from commit 1d88a2e3d6d501112a741626d91abd025bd75d16) --- src/cocoa_platform.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cocoa_platform.h b/src/cocoa_platform.h index 05c23b70..405abf9f 100644 --- a/src/cocoa_platform.h +++ b/src/cocoa_platform.h @@ -31,7 +31,9 @@ // NOTE: All of NSGL was deprecated in the 10.14 SDK // This disables the pointless warnings for every symbol we use +#ifndef GL_SILENCE_DEPRECATION #define GL_SILENCE_DEPRECATION +#endif #if defined(__OBJC__) #import