From 997fdc1ef606388f341dcb926dd10f98599300f6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 7 Jul 2018 16:37:11 -0700 Subject: [PATCH] Fix linking on Windows --- app/main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/main.cpp b/app/main.cpp index ee2fd06b..21f378df 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -1,15 +1,16 @@ #include #include +// Don't let SDL hook our main function, since Qt is already +// doing the same thing. This needs to be before any headers +// that might include SDL.h themselves. +#define SDL_MAIN_HANDLED +#include + #include "gui/computermodel.h" #include "gui/appmodel.h" #include "streaming/session.hpp" -// Don't let SDL hook our main function, since Qt is already -// doing the same thing -#define SDL_MAIN_HANDLED -#include - int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);