freebsd-ports/games/gtkradiant/files/patch-tools__quake3__q3data__q3data.c
Alexey Dokuchaev 6b620ace29 Ensure that there is only one variable definition per each object, as
the C (and C++) standards mandated for years and compilers started to
enforce as of recently (Clang 11, GCC 10).

Reported by:	pkg-fallout
2020-10-15 11:22:57 +00:00

20 lines
498 B
C

--- tools/quake3/q3data/q3data.c.orig 2006-02-10 22:01:20 UTC
+++ tools/quake3/q3data/q3data.c
@@ -37,8 +37,6 @@
// bogus externs for some TA hacks (common/ using them against q3map)
char *moddir = NULL;
-// some old defined that was in cmdlib lost during merge
-char writedir[1024];
#if defined (__linux__) || defined (__APPLE__)
#define strlwr strlower
@@ -341,7 +339,7 @@
#else
#include <sys/types.h>
-#ifndef WIN32
+#ifdef NeXT
#include <sys/dir.h>
#else
#include <sys/dirent.h>