diff --git a/src/platform/qt/main.cpp b/src/platform/qt/main.cpp index 8b6de713d..812a86947 100644 --- a/src/platform/qt/main.cpp +++ b/src/platform/qt/main.cpp @@ -30,7 +30,7 @@ Q_IMPORT_PLUGIN(QWindowsAudioPlugin); using namespace QGBA; int main(int argc, char* argv[]) { -#ifdef BUILD_SDL +#if defined(BUILD_SDL) && SDL_VERSION_ATLEAST(2, 0, 0) SDL_SetMainReady(); #endif