Disable Linux-specific function when compiling for Windows

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

View file

@ -357,8 +357,10 @@ void sigAbnormalHandler(int signum)
reportToUser(msg); reportToUser(msg);
reportToUser(sigName); reportToUser(sigName);
reportToUser("\n"); reportToUser("\n");
#if !defined Q_OS_WIN
print_stacktrace(); // unsafe print_stacktrace(); // unsafe
#endif #endif
#endif
#if defined Q_OS_WIN && !defined DISABLE_GUI #if defined Q_OS_WIN && !defined DISABLE_GUI
StacktraceDialog dlg; // unsafe StacktraceDialog dlg; // unsafe