import cstdlib in rungui, use _Exit (#6218)

i don't want to include stdlib.h
This commit is contained in:
pajlada
2025-05-18 13:02:03 +02:00
committed by GitHub
parent 67956ef2c6
commit 1baa4b4729
+2 -1
View File
@@ -23,6 +23,7 @@
#include <QtConcurrent> #include <QtConcurrent>
#include <csignal> #include <csignal>
#include <cstdlib>
#include <tuple> #include <tuple>
#ifdef USEWINSDK #ifdef USEWINSDK
@@ -162,7 +163,7 @@ namespace {
proc.startDetached(); proc.startDetached();
} }
_exit(signum); std::_Exit(signum);
} }
// We want to restart Chatterino when it crashes and the setting is set to // We want to restart Chatterino when it crashes and the setting is set to