From d7f172060c8c8497e8f755cc379936c075da2780 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 2e7013d91..618f11fe8 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -357,8 +357,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