X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=daca412e012c96489bbf28ceffa9987a667c1022;hp=5ce1ac9ccaf33cf0f31e19b5e6d2e3b7c3798180;hb=a85b57c398789af57be447cfa903fe8f98dfd4d0;hpb=bcb94767ec585a25b83bfb7a4e236fb40cc32570 diff --git a/src/common/main.cpp b/src/common/main.cpp index 5ce1ac9c..daca412e 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -54,7 +54,7 @@ #include -#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK) +#ifdef Q_OS_LINUX #include #include #include @@ -66,7 +66,7 @@ void handle_signal(int sig) { QCoreApplication::quit(); } -#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK) +#ifdef Q_OS_LINUX void handle_crash(int sig) { void* callstack[128]; int i, frames = backtrace(callstack, 128); @@ -128,7 +128,7 @@ void handle_crash(int sig) { dumpFile.close(); exit(27); } -#endif // ifndef Q_OS_WIN32 +#endif // #ifdef Q_OS_LINUX int main(int argc, char **argv) { @@ -136,11 +136,11 @@ int main(int argc, char **argv) { signal(SIGTERM, handle_signal); signal(SIGINT, handle_signal); -#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK) +#ifdef Q_OS_LINUX signal(SIGABRT, handle_crash); signal(SIGBUS, handle_crash); signal(SIGSEGV, handle_crash); -#endif // ndef Q_OS_WIN32 +#endif // #ifdef Q_OS_LINUX Global::registerMetaTypes(); Global::setupVersion();