sdl12-compat: Allow building without glu.h by defining NO_SDL_GLU

From 45fb7be084c477b5d6b0df53f3e93200abd51f40 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 7 Nov 2025 11:04:27 -0800
Subject: [PATCH] Allow building without glu.h by defining NO_SDL_GLU

Reference: https://github.com/libsdl-org/sdl12-compat/issues/358
---
 include/SDL/SDL_opengl.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/SDL/SDL_opengl.h b/include/SDL/SDL_opengl.h
index 776541a20..8447fbf10 100644
--- a/include/SDL/SDL_opengl.h
+++ b/include/SDL/SDL_opengl.h
@@ -45,11 +45,15 @@ real SDL-1.2 available to you. */
 #endif
 #if defined(__MACOSX__)
 #include <OpenGL/gl.h>  /* Header File For The OpenGL Library */
+#ifndef NO_SDL_GLU
 #include <OpenGL/glu.h> /* Header File For The GLU Library */
+#endif
 #else
 #include <GL/gl.h>      /* Header File For The OpenGL Library */
+#ifndef NO_SDL_GLU
 #include <GL/glu.h>     /* Header File For The GLU Library */
 #endif
+#endif
 #ifndef NO_SDL_GLEXT
 #undef __glext_h_
 #undef __gl_glext_h_