Browse Source

Prevented the Apple system headers from including some unnecessary C library headers

tags/2021-05-28
jules 6 years ago
parent
commit
2830ecec0a
4 changed files with 6 additions and 1 deletions
  1. +1
    -0
      modules/juce_core/juce_core.cpp
  2. +3
    -0
      modules/juce_core/system/juce_StandardHeader.h
  3. +1
    -1
      modules/juce_core/system/juce_SystemStats.cpp
  4. +1
    -0
      modules/juce_core/system/juce_TargetPlatform.h

+ 1
- 0
modules/juce_core/juce_core.cpp 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


+ 3
- 0
modules/juce_core/system/juce_StandardHeader.h 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


+ 1
- 1
modules/juce_core/system/juce_SystemStats.cpp 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);


+ 1
- 0
modules/juce_core/system/juce_TargetPlatform.h 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"


Loading…
Cancel
Save