1
0
Fork 0
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:
jules 2019-05-10 09:16:42 +01:00
parent 7495163471
commit 2830ecec0a
4 changed files with 6 additions and 1 deletions

View file

@ -102,6 +102,7 @@
#if JUCE_MAC || JUCE_IOS
#include <xlocale.h>
#include <mach/mach.h>
#include <signal.h>
#endif
#if JUCE_ANDROID

View file

@ -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

View file

@ -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);

View file

@ -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"