mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
sdl: Fix up build failures with -fno-common
Big pile of duplicate variable definitions in quake and duke3d Change-Id: If5ef873c1dc1d7b3104536f657258e0a06574d53
This commit is contained in:
parent
c33602375d
commit
9f91f02159
17 changed files with 58 additions and 40 deletions
|
|
@ -11,8 +11,8 @@
|
|||
#include "platform.h"
|
||||
|
||||
/* set these in your _platform_init() implementation. */
|
||||
int _argc;
|
||||
char **_argv;
|
||||
extern int _argc;
|
||||
extern char **_argv;
|
||||
|
||||
/* !!! gads, look at all the namespace polution... */
|
||||
extern int32_t xres, yres, bytesperline, imageSize, maxpages;
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
#include "build.h"
|
||||
|
||||
|
||||
short numplayers = 1, myconnectindex = 0;
|
||||
short connecthead, connectpoint2[MAXPLAYERS];
|
||||
//short numplayers = 1, myconnectindex = 0;
|
||||
//short connecthead, connectpoint2[MAXPLAYERS];
|
||||
|
||||
|
||||
//uint8_t syncstate=0;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ static short bakpacketptr[MAXPLAYERS][256], bakpacketlen[MAXPLAYERS][256];
|
|||
static char bakpacketbuf[BAKSIZ];
|
||||
static long bakpacketplc = 0;
|
||||
|
||||
short myconnectindex, numplayers;
|
||||
short myconnectindex = 0, numplayers = 1;
|
||||
short connecthead, connectpoint2[MAXPLAYERS];
|
||||
char syncstate = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
|||
#include "duke3d.h"
|
||||
|
||||
extern int32_t numenvsnds;
|
||||
uint8_t actor_tog;
|
||||
extern uint8_t actor_tog;
|
||||
|
||||
void updateinterpolations() //Stick at beginning of domovethings
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
// #define IS_QUIET( ptr ) ( ( void * )( ptr ) == ( void * )&MV_VolumeTable[ 0 ] )
|
||||
#define IS_QUIET( vol ) ( ( vol ) == 0 )
|
||||
|
||||
SDL_mutex* reverbMutex;
|
||||
static int MV_ReverbLevel;
|
||||
int MV_ReverbDelay;
|
||||
#if 0
|
||||
|
|
|
|||
|
|
@ -122,6 +122,6 @@ int MV_Shutdown( void );
|
|||
void MV_UnlockMemory( void );
|
||||
int MV_LockMemory( void );
|
||||
|
||||
SDL_mutex* reverbMutex;
|
||||
extern SDL_mutex* reverbMutex;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -71,6 +71,10 @@ static int32 mousePositionY = 0;
|
|||
static int32 mouseRelativeX = 0;
|
||||
static int32 mouseRelativeY = 0;
|
||||
|
||||
struct _KeyMapping KeyMapping[MAXGAMEBUTTONS];
|
||||
int32 MouseMapping[MAXMOUSEBUTTONS];
|
||||
int32 MouseDigitalAxeMapping[MAXMOUSEAXES][2];
|
||||
|
||||
//***************************************************************************
|
||||
//
|
||||
// FUNCTIONS
|
||||
|
|
|
|||
|
|
@ -177,12 +177,13 @@ struct _KeyMapping
|
|||
boolean key_active;
|
||||
kb_scancode key1;
|
||||
kb_scancode key2;
|
||||
|
||||
/* other mappings go here */
|
||||
} KeyMapping[MAXGAMEBUTTONS];
|
||||
|
||||
int32 MouseMapping[MAXMOUSEBUTTONS];
|
||||
int32 MouseDigitalAxeMapping[MAXMOUSEAXES][2]; // [axesX/Y][directionLeft/Right or directionUp/Down]
|
||||
/* other mappings go here */
|
||||
};
|
||||
extern struct _KeyMapping KeyMapping[MAXGAMEBUTTONS];
|
||||
|
||||
extern int32 MouseMapping[MAXMOUSEBUTTONS];
|
||||
extern int32 MouseDigitalAxeMapping[MAXMOUSEAXES][2]; // [axesX/Y][directionLeft/Right or directionUp/Down]
|
||||
|
||||
|
||||
int ACTION(int i);
|
||||
|
|
|
|||
|
|
@ -20,6 +20,18 @@
|
|||
|
||||
#include "audiolib/music.h"
|
||||
|
||||
int g_CV_console_text_color;
|
||||
int g_CV_num_console_lines;
|
||||
int g_CV_classic;
|
||||
int g_CV_TransConsole;
|
||||
int g_CV_DebugJoystick;
|
||||
int g_CV_DebugSound;
|
||||
int g_CV_DebugFileAccess;
|
||||
uint32_t sounddebugActiveSounds;
|
||||
uint32_t sounddebugAllocateSoundCalls;
|
||||
uint32_t sounddebugDeallocateSoundCalls;
|
||||
int g_CV_CubicInterpolation;
|
||||
|
||||
// Bind our Cvars at startup. You can still add bindings after this call, but
|
||||
// it is recommanded that you bind your default CVars here.
|
||||
void CVARDEFS_Init()
|
||||
|
|
|
|||
|
|
@ -22,18 +22,16 @@ void CVARDEFS_FunctionHelp(void* var);
|
|||
//
|
||||
// Variable declarations
|
||||
//
|
||||
int g_CV_console_text_color;
|
||||
int g_CV_num_console_lines;
|
||||
int g_CV_classic;
|
||||
int g_CV_TransConsole;
|
||||
int g_CV_DebugJoystick;
|
||||
int g_CV_DebugSound;
|
||||
int g_CV_DebugFileAccess;
|
||||
uint32_t sounddebugActiveSounds;
|
||||
uint32_t sounddebugAllocateSoundCalls;
|
||||
uint32_t sounddebugDeallocateSoundCalls;
|
||||
extern int g_CV_console_text_color;
|
||||
extern int g_CV_num_console_lines;
|
||||
extern int g_CV_classic;
|
||||
extern int g_CV_TransConsole;
|
||||
extern int g_CV_DebugJoystick;
|
||||
extern int g_CV_DebugSound;
|
||||
extern int g_CV_DebugFileAccess;
|
||||
extern uint32_t sounddebugActiveSounds;
|
||||
extern uint32_t sounddebugAllocateSoundCalls;
|
||||
extern uint32_t sounddebugDeallocateSoundCalls;
|
||||
extern int g_CV_CubicInterpolation;
|
||||
|
||||
|
||||
int g_CV_CubicInterpolation;
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -344,9 +344,9 @@ struct animwalltype
|
|||
extern struct animwalltype animwall[MAXANIMWALLS];
|
||||
extern short numanimwalls,probey,lastprobey;
|
||||
|
||||
char *mymembuf;
|
||||
extern char *mymembuf;
|
||||
extern uint8_t typebuflen;
|
||||
char typebuf[41];
|
||||
extern char typebuf[41];
|
||||
extern uint8_t MusicPtr[72000];
|
||||
extern int32_t msx[2048],msy[2048];
|
||||
extern short cyclers[MAXCYCLERS][6],numcyclers;
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
|||
char *mymembuf;
|
||||
uint8_t MusicPtr[72000];
|
||||
|
||||
char **_argv;
|
||||
int _argc;
|
||||
|
||||
crc32_t crc32lookup[] = {
|
||||
// good:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue