sdl12-compat: Don't include glu.h by default

From 6595f6e405844cbca4a55e47eaa29ccec0cdd75f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 27 Oct 2025 09:10:11 -0700
Subject: [PATCH] Don't include glu.h by default

This isn't available by default in modern Linux SDKs, and probably not used by anyone building SDL 1.2 applications. If an SDL 1.2 app is using glu.h, it can define SDL_INCLUDE_GLU_H to have it included.

Fixes 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..ba92b114f 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 */
+#ifdef SDL_INCLUDE_GLU_H
 #include <OpenGL/glu.h> /* Header File For The GLU Library */
+#endif
 #else
 #include <GL/gl.h>      /* Header File For The OpenGL Library */
+#ifdef SDL_INCLUDE_GLU_H
 #include <GL/glu.h>     /* Header File For The GLU Library */
 #endif
+#endif
 #ifndef NO_SDL_GLEXT
 #undef __glext_h_
 #undef __gl_glext_h_