Disable Linux-specific function when compiling for Windows

This commit is contained in:
Chocobo1
2022-04-28 18:40:15 +08:00
parent 9eae2b8ea9
commit d7f172060c

View File

@@ -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