all repos — mgba @ 81f38fd76f8a0d1db377243e0e69f568118dde1f

mGBA Game Boy Advance Emulator

SDL: Fix build on MSVC.
waddlesplash waddlesplash@gmail.com
Sun, 02 Apr 2017 17:17:52 -0400
commit

81f38fd76f8a0d1db377243e0e69f568118dde1f

parent

6a77d2aaeafd999f2b7258db70f377d44305ef08

2 files changed, 1 insertions(+), 3 deletions(-)

jump to
M src/platform/sdl/CMakeLists.txtsrc/platform/sdl/CMakeLists.txt

@@ -6,7 +6,6 @@ pkg_search_module(SDL2 sdl2)

if (SDL2_FOUND) set(SDL_INCLUDE_DIR ${SDL2_INCLUDE_DIRS}) set(SDL_LIBRARY ${SDL2_LIBRARIES}) - set(SDLMAIN_LIBRARY "") link_directories(${SDL2_LIBDIR}) set(SDL_VERSION_DEBIAN "2-2.0-0") endif()
M src/platform/sdl/main.csrc/platform/sdl/main.c

@@ -27,7 +27,6 @@ #include <SDL.h>

#include <errno.h> #include <signal.h> -#include <sys/time.h> #define PORT "sdl"

@@ -37,7 +36,7 @@

static int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args); int main(int argc, char** argv) { - struct mSDLRenderer renderer = {}; + struct mSDLRenderer renderer = {0}; struct mCoreOptions opts = { .useBios = true,