diff --git a/src/sdl/SDL.cpp b/src/sdl/SDL.cpp index 65967478..dd374147 100644 --- a/src/sdl/SDL.cpp +++ b/src/sdl/SDL.cpp @@ -190,7 +190,7 @@ static int sdlSoundToggledOff = 0; int sdl_patch_num = 0; char * (sdl_patch_names[PATCH_MAX_NUM]) = { NULL }; // and so on -int autoFireMaxCount = 1; +extern int autoFireMaxCount; #define REWIND_NUM 8 #define REWIND_SIZE 400000 diff --git a/src/sdl/inputSDL.cpp b/src/sdl/inputSDL.cpp index 7457c4b0..bd7e9815 100644 --- a/src/sdl/inputSDL.cpp +++ b/src/sdl/inputSDL.cpp @@ -54,7 +54,7 @@ static EPad sdlDefaultJoypad = PAD_MAIN; static int autoFire = 0; static bool autoFireToggle = false; static int autoFireCountdown = 0; -extern int autoFireMaxCount; +int autoFireMaxCount = 1; static uint32_t joypad[5][SDLBUTTONS_NUM] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },