From 18833ad271bab503d5703fbaeca1d2f2b19e476d Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@craftyjon.com>
Date: Thu, 16 Nov 2023 09:09:24 -0500
Subject: [PATCH] Silence a warning on macOS

---
 3d-viewer/common_ogl/openGL_includes.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/3d-viewer/common_ogl/openGL_includes.h b/3d-viewer/common_ogl/openGL_includes.h
index 5ce225c588..8c96214688 100644
--- a/3d-viewer/common_ogl/openGL_includes.h
+++ b/3d-viewer/common_ogl/openGL_includes.h
@@ -31,9 +31,11 @@
 #define OPENGL_INCLUDES_H
 
 #ifdef __APPLE__
+#ifndef GL_SILENCE_DEPRECATION
 // Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
 // Luckily we can silence warnings about its deprecation.
 #define GL_SILENCE_DEPRECATION 1
+#endif
 #include <OpenGL/gl.h>
 #include <OpenGL/glu.h>
 #else