From 639ed40314c18342aeeac854f4b26e55c54375cd Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 28 Apr 2022 18:40:15 +0800 Subject: [PATCH] Disable Linux-specific function when compiling for Windows --- src/app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index e3241bbb9..5ab06e28b 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -352,8 +352,10 @@ void sigAbnormalHandler(int signum) reportToUser(msg); reportToUser(sigName); reportToUser("\n"); +#if !defined Q_OS_WIN print_stacktrace(); // unsafe #endif +#endif #if defined Q_OS_WIN && !defined DISABLE_GUI StacktraceDialog dlg; // unsafe