mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix build on MSVC.
This commit is contained in:
parent
6a77d2aaea
commit
81f38fd76f
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue