set(CMAKE_OSX_ARCHITECTURES "i386;ppc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4")
set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.4u.sdk/")
+ add_definitions(-DMAC_10_4_SDK)
endif(APPLE AND DEPLOY)
# Enable mostly b0rked stuff (new ChatView), do not enable this unless you know what you do...
#include <signal.h>
-#ifndef Q_OS_WIN32
+#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK)
#include <execinfo.h>
#include <dlfcn.h>
#include <cxxabi.h>
QCoreApplication::quit();
}
-#ifndef Q_OS_WIN32
+#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK)
void handle_crash(int sig) {
void* callstack[128];
int i, frames = backtrace(callstack, 128);
signal(SIGTERM, handle_signal);
signal(SIGINT, handle_signal);
-#ifndef Q_OS_WIN32
+#if not defined(Q_OS_WIN32) && not defined(MAC_10_4_SDK)
signal(SIGABRT, handle_crash);
signal(SIGBUS, handle_crash);
signal(SIGSEGV, handle_crash);