mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Prevented the Apple system headers from including some unnecessary C library headers
This commit is contained in:
parent
7495163471
commit
2830ecec0a
4 changed files with 6 additions and 1 deletions
|
|
@ -102,6 +102,7 @@
|
|||
#if JUCE_MAC || JUCE_IOS
|
||||
#include <xlocale.h>
|
||||
#include <mach/mach.h>
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
#if JUCE_ANDROID
|
||||
|
|
|
|||
|
|
@ -70,6 +70,9 @@
|
|||
#if JUCE_MAC || JUCE_IOS
|
||||
#include <libkern/OSAtomic.h>
|
||||
#include <xlocale.h>
|
||||
#if JUCE_IOS
|
||||
#include <signal.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if JUCE_LINUX
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ static LONG WINAPI handleCrash (LPEXCEPTION_POINTERS ep)
|
|||
static void handleCrash (int signum)
|
||||
{
|
||||
globalCrashHandler ((void*) (pointer_sized_int) signum);
|
||||
kill (getpid(), SIGKILL);
|
||||
::kill (getpid(), SIGKILL);
|
||||
}
|
||||
|
||||
int juce_siginterrupt (int sig, int flag);
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@
|
|||
#elif defined (LINUX) || defined (__linux__)
|
||||
#define JUCE_LINUX 1
|
||||
#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 "../native/juce_mac_ClangBugWorkaround.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue