SDL: Fix build on MSVC.
waddlesplash waddlesplash@gmail.com
Sun, 02 Apr 2017 17:17:52 -0400
2 files changed,
1 insertions(+),
3 deletions(-)
M
src/platform/sdl/CMakeLists.txt
→
src/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.c
→
src/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,