Fix various duplicate definition link errors, picked up by gcc 10

This commit is contained in:
Timothee 'TTimo' Besset 2020-07-04 16:08:41 -05:00
parent 78b32daef8
commit 6f98213cc2
6 changed files with 8 additions and 14 deletions

View file

@ -58,8 +58,6 @@ UINT wm_BroadcastCommand = -1;
socket_t *brdcst_socket;
netmessage_t msg;
qboolean verbose = qfalse;
// our main document
// is streamed through the network to Radiant
// possibly written to disk at the end of the run

View file

@ -22,11 +22,13 @@
#ifdef WIN32
#include <io.h>
#endif
#include "q3data.h"
#include "md3lib.h"
#include "vfs.h"
qboolean verbose;
qboolean g_verbose;
qboolean g_stripify = qtrue;
qboolean g_release; // don't grab, copy output data to new tree
@ -37,8 +39,6 @@ qboolean g_skipmodel; // set true when a cd is not g_only
// 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( __FreeBSD__ ) || defined( __APPLE__ )
#define strlwr strlower

View file

@ -978,10 +978,8 @@ typedef enum
}
surfaceType_t;
#ifdef MAIN_C
char *surfaceTypes[ NUM_SURFACE_TYPES ]
#ifndef MAIN_C
;
#else
=
{
"SURFACE_BAD",
@ -996,6 +994,8 @@ char *surfaceTypes[ NUM_SURFACE_TYPES ]
"SURFACE_DECAL",
"SURFACE_SHADER"
};
#else
extern char *surfaceTypes[ NUM_SURFACE_TYPES ];
#endif

View file

@ -72,8 +72,6 @@ int CountBits( byte *bits, int numbits ){
}
int c_fullskip;
int c_portalskip, c_leafskip;
int c_vistest, c_mighttest;
int c_chop, c_nochop;

View file

@ -945,10 +945,8 @@ typedef enum
}
surfaceType_t;
#ifdef MAIN_C
char *surfaceTypes[ NUM_SURFACE_TYPES ]
#ifndef MAIN_C
;
#else
=
{
"SURFACE_BAD",
@ -963,6 +961,8 @@ char *surfaceTypes[ NUM_SURFACE_TYPES ]
"SURFACE_DECAL",
"SURFACE_SHADER"
};
#else
extern char *surfaceTypes[ NUM_SURFACE_TYPES ];
#endif

View file

@ -72,8 +72,6 @@ int CountBits( byte *bits, int numbits ){
}
int c_fullskip;
int c_portalskip, c_leafskip;
int c_vistest, c_mighttest;
int c_chop, c_nochop;