diff --git a/src/debugger/gdb-stub.c b/src/debugger/gdb-stub.c index f6252737f..5ca8f2f4a 100644 --- a/src/debugger/gdb-stub.c +++ b/src/debugger/gdb-stub.c @@ -1,6 +1,7 @@ #include "gdb-stub.h" #include +#include enum GDBError { GDB_NO_ERROR = 0x00, diff --git a/src/platform/sdl/gl-main.c b/src/platform/sdl/gl-main.c index 408f86a0a..d6ad18dd8 100644 --- a/src/platform/sdl/gl-main.c +++ b/src/platform/sdl/gl-main.c @@ -191,13 +191,17 @@ static void _GBASDLRunloop(struct GBAThread* context, struct GLSoftwareRenderer* #endif while (SDL_PollEvent(&event)) { +#if SDL_VERSION_ATLEAST(2, 0, 0) int fullscreen = renderer->events.fullscreen; +#endif GBASDLHandleEvent(context, &renderer->events, &event); +#if SDL_VERSION_ATLEAST(2, 0, 0) // Event handling can change the size of the screen if (renderer->events.fullscreen != fullscreen) { SDL_GetWindowSize(renderer->window, &renderer->viewportWidth, &renderer->viewportHeight); glViewport(0, 0, renderer->viewportWidth, renderer->viewportHeight); } +#endif } } }