diff --git a/src/duckstation-qt/main.cpp b/src/duckstation-qt/main.cpp index d9de4da93..fa7308853 100644 --- a/src/duckstation-qt/main.cpp +++ b/src/duckstation-qt/main.cpp @@ -1,14 +1,13 @@ -#include "common/log.h" #include "common/crash_handler.h" #include "mainwindow.h" #include "qthostinterface.h" #include "qtutils.h" #include #include +#include #include #include #include -#include static bool ParseCommandLineParameters(QApplication& app, QtHostInterface* host_interface, std::unique_ptr* boot_params) @@ -41,7 +40,13 @@ static void SignalHandler(int signal) } std::signal(signal, SIG_DFL); + + // MacOS is missing std::quick_exit() despite it being C++11... +#ifndef __APPLE__ std::quick_exit(1); +#else + _Exit(1); +#endif } static void HookSignals()