SDL: Fix build on MSVC.

This commit is contained in:
waddlesplash 2017-04-02 17:17:52 -04:00 committed by endrift
parent 6a77d2aaea
commit 81f38fd76f
2 changed files with 1 additions and 3 deletions

View File

@ -6,7 +6,6 @@ if (SDL_VERSION EQUAL "2")
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()

View File

@ -27,7 +27,6 @@
#include <errno.h>
#include <signal.h>
#include <sys/time.h>
#define PORT "sdl"
@ -37,7 +36,7 @@ static void mSDLDeinit(struct mSDLRenderer* renderer);
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,