File: Revert-Don-t-include-glu.h-by-default.patch

package info (click to toggle)
sdl12-compat 1.2.70-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,080 kB
  • sloc: ansic: 33,090; python: 1,346; objc: 294; sh: 202; makefile: 13
file content (56 lines) | stat: -rw-r--r-- 1,758 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From: Sam Lantinga <slouken@libsdl.org>
Date: Thu, 6 Nov 2025 07:19:20 -0800
Subject: Revert "Don't include glu.h by default"

This reverts commit 6595f6e405844cbca4a55e47eaa29ccec0cdd75f.

It turns out there are a number of games that depend on this:
* antigrav
* armagetronad
* bloboats
* blockout2
* brutalchess
* cytadela
* enemylines3
* enemylines7
* opencity
* pathogen

Bug: https://github.com/libsdl-org/sdl12-compat/issues/382
Bug-Debian: https://bugs.debian.org/1120174
Bug-Debian: https://bugs.debian.org/1120175
Bug-Debian: https://bugs.debian.org/1120181
Bug-Debian: https://bugs.debian.org/1120183
Bug-Debian: https://bugs.debian.org/1120186
Bug-Debian: https://bugs.debian.org/1120195
Bug-Debian: https://bugs.debian.org/1120196
Bug-Debian: https://bugs.debian.org/1120199
Bug-Debian: https://bugs.debian.org/1120207
Bug-Debian: https://bugs.debian.org/1120218
Bug-Debian: https://bugs.debian.org/1120224
Bug-Debian: https://bugs.debian.org/1120225
Origin: upstream, 1.2.72, commit:bef8f7412dd44edc4f7e14dc35d3b20399e25496
---
 include/SDL/SDL_opengl.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/include/SDL/SDL_opengl.h b/include/SDL/SDL_opengl.h
index ba92b11..776541a 100644
--- a/include/SDL/SDL_opengl.h
+++ b/include/SDL/SDL_opengl.h
@@ -45,15 +45,11 @@ 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_