Fix the build
Jeffrey Pfau jeffrey@endrift.com
Thu, 03 Apr 2014 00:00:06 -0700
2 files changed,
5 insertions(+),
0 deletions(-)
M
src/debugger/gdb-stub.c
→
src/debugger/gdb-stub.c
@@ -1,6 +1,7 @@
#include "gdb-stub.h" #include <errno.h> +#include <signal.h> enum GDBError { GDB_NO_ERROR = 0x00,
M
src/platform/sdl/gl-main.c
→
src/platform/sdl/gl-main.c
@@ -191,13 +191,17 @@ SDL_GL_SwapBuffers();
#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 } } }