| @@ -102,6 +102,7 @@ | |||||
| #if JUCE_MAC || JUCE_IOS | #if JUCE_MAC || JUCE_IOS | ||||
| #include <xlocale.h> | #include <xlocale.h> | ||||
| #include <mach/mach.h> | #include <mach/mach.h> | ||||
| #include <signal.h> | |||||
| #endif | #endif | ||||
| #if JUCE_ANDROID | #if JUCE_ANDROID | ||||
| @@ -70,6 +70,9 @@ | |||||
| #if JUCE_MAC || JUCE_IOS | #if JUCE_MAC || JUCE_IOS | ||||
| #include <libkern/OSAtomic.h> | #include <libkern/OSAtomic.h> | ||||
| #include <xlocale.h> | #include <xlocale.h> | ||||
| #if JUCE_IOS | |||||
| #include <signal.h> | |||||
| #endif | |||||
| #endif | #endif | ||||
| #if JUCE_LINUX | #if JUCE_LINUX | ||||
| @@ -197,7 +197,7 @@ static LONG WINAPI handleCrash (LPEXCEPTION_POINTERS ep) | |||||
| static void handleCrash (int signum) | static void handleCrash (int signum) | ||||
| { | { | ||||
| globalCrashHandler ((void*) (pointer_sized_int) signum); | globalCrashHandler ((void*) (pointer_sized_int) signum); | ||||
| kill (getpid(), SIGKILL); | |||||
| ::kill (getpid(), SIGKILL); | |||||
| } | } | ||||
| int juce_siginterrupt (int sig, int flag); | int juce_siginterrupt (int sig, int flag); | ||||
| @@ -68,6 +68,7 @@ | |||||
| #elif defined (LINUX) || defined (__linux__) | #elif defined (LINUX) || defined (__linux__) | ||||
| #define JUCE_LINUX 1 | #define JUCE_LINUX 1 | ||||
| #elif defined (__APPLE_CPP__) || defined (__APPLE_CC__) | #elif defined (__APPLE_CPP__) || defined (__APPLE_CC__) | ||||
| #define CF_EXCLUDE_CSTD_HEADERS 1 | |||||
| #include <CoreFoundation/CoreFoundation.h> // (needed to find out what platform we're using) | #include <CoreFoundation/CoreFoundation.h> // (needed to find out what platform we're using) | ||||
| #include "../native/juce_mac_ClangBugWorkaround.h" | #include "../native/juce_mac_ClangBugWorkaround.h" | ||||