mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Fix compilation without backtrace support on Windows.
This commit is contained in:
parent
1f0d4ce871
commit
eb0d1748c3
@ -65,7 +65,7 @@ Q_IMPORT_PLUGIN(qico)
|
|||||||
#include "stacktrace.h"
|
#include "stacktrace.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(Q_OS_WIN) && defined(STACKTRACE_WIN)
|
#ifdef STACKTRACE_WIN
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "stacktrace_win.h"
|
#include "stacktrace_win.h"
|
||||||
#include "stacktrace_win_dlg.h"
|
#include "stacktrace_win_dlg.h"
|
||||||
@ -133,7 +133,7 @@ public:
|
|||||||
|
|
||||||
#include "main.moc"
|
#include "main.moc"
|
||||||
|
|
||||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(Q_OS_WIN)
|
#if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(STACKTRACE_WIN)
|
||||||
void sigintHandler(int) {
|
void sigintHandler(int) {
|
||||||
signal(SIGINT, 0);
|
signal(SIGINT, 0);
|
||||||
qDebug("Catching SIGINT, exiting cleanly");
|
qDebug("Catching SIGINT, exiting cleanly");
|
||||||
@ -333,7 +333,7 @@ int main(int argc, char *argv[]) {
|
|||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
app.setQuitOnLastWindowClosed(false);
|
app.setQuitOnLastWindowClosed(false);
|
||||||
#endif
|
#endif
|
||||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(Q_OS_WIN)
|
#if defined(Q_WS_X11) || defined(Q_WS_MAC) || defined(STACKTRACE_WIN)
|
||||||
signal(SIGABRT, sigabrtHandler);
|
signal(SIGABRT, sigabrtHandler);
|
||||||
signal(SIGTERM, sigtermHandler);
|
signal(SIGTERM, sigtermHandler);
|
||||||
signal(SIGINT, sigintHandler);
|
signal(SIGINT, sigintHandler);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user