<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Fixes for GCC 15.

The LoadPCX removal is because that function takes one more argument -- so it
can't have worked anyway.

--- quake2-r0.16.2/src/client/cl_tent.c	2002-10-08 21:03:00.000000000 +0100
+++ quake2-r0.16.2/src/client/cl_tent.c	2025-07-04 16:08:11.634848691 +0100
@@ -1184,11 +1184,7 @@
 
 
 	case TE_LIGHTNING:
-#ifdef QMAX
-	  ent = CL_ParseLightning (10);
-#else
-	  ent = CL_ParseLightning (cl_mod_lightning);
-#endif
+		ent = CL_ParseLightning (cl_mod_lightning);
 		S_StartSound (NULL, ent, CHAN_WEAPON, cl_sfx_lightning, 1, ATTN_NORM, 0);
 		break;
 
--- quake2-r0.16.2/src/ctf/q_shared.h	2002-02-09 22:09:23.000000000 +0000
+++ quake2-r0.16.2/src/ctf/q_shared.h	2025-07-04 16:08:56.493494536 +0100
@@ -52,7 +52,7 @@
 #endif
 
 typedef unsigned char 		byte;
-typedef enum {false, true}	qboolean;
+typedef bool			qboolean;
 
 
 #ifndef NULL
--- quake2-r0.16.2/src/game/q_shared.h	2002-09-25 14:22:55.000000000 +0100
+++ quake2-r0.16.2/src/game/q_shared.h	2025-07-04 16:06:32.280152147 +0100
@@ -53,7 +53,7 @@
 #endif
 
 typedef unsigned char 		byte;
-typedef enum {false, true}	qboolean;
+typedef bool			qboolean;
 
 
 #ifndef NULL
--- quake2-r0.16.2/src/linux/q_shlinux.c	2002-02-09 22:09:23.000000000 +0000
+++ quake2-r0.16.2/src/linux/q_shlinux.c	2025-07-04 16:08:36.248828792 +0100
@@ -17,6 +17,7 @@
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
+#define _GNU_SOURCE
 #include &lt;sys/types.h&gt;
 #include &lt;sys/stat.h&gt;
 #include &lt;errno.h&gt;
--- quake2-r0.16.2/src/linux/rw_linux.h	2004-05-02 20:36:53.000000000 +0100
+++ quake2-r0.16.2/src/linux/rw_linux.h	2025-07-04 16:10:50.483956516 +0100
@@ -26,7 +26,7 @@
 extern void (*KBD_Close_fp)(void);
 
 void RW_IN_PlatformInit();
-void RW_IN_Activate();
+void RW_IN_Activate(bool);
 
 #define MOUSE_MAX 3000
 #define MOUSE_MIN 40
--- quake2-r0.16.2/src/ref_candygl/gl_rmisc.c	2003-07-12 02:59:52.000000000 +0100
+++ quake2-r0.16.2/src/ref_candygl/gl_rmisc.c	2025-07-04 16:13:15.566024213 +0100
@@ -66,8 +66,6 @@
 		PicLoad = LoadJPG;
 	else if (!strcmp(name+len-4, ".tga"))
 		PicLoad = LoadTGA;
-	else if (!strcmp(name+len-4, ".pcx")) //just in case someone wants old style pics :/
-		PicLoad = LoadPCX;
 
 	PicLoad (name, &amp;pic, &amp;width, &amp;height);
 
--- quake2-r0.16.2/src/ref_candygl/gl_rsurf.c	2002-06-17 21:03:07.000000000 +0100
+++ quake2-r0.16.2/src/ref_candygl/gl_rsurf.c	2025-07-04 16:09:53.780302884 +0100
@@ -19,6 +19,7 @@
 */
 // GL_RSURF.C: surface-related refresh code
 #include &lt;assert.h&gt;
+#include &lt;ctype.h&gt;
 
 #include "gl_local.h"
 
</pre></body></html>