all repos — mgba @ 95286a6832cb58ea5eccb2d1236e97e1ec2641a2

mGBA Game Boy Advance Emulator

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

95286a6832cb58ea5eccb2d1236e97e1ec2641a2

parent

2cc14f3fd481388dcf05934f472fc82eedbfe178

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

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

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

@@ -46,7 +45,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,