1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Build: Fix Xcode 11.4 compatibility issues

This commit is contained in:
reuk 2020-03-25 12:22:47 +00:00
parent cfce337d81
commit dddeb1ad68
7 changed files with 29 additions and 4 deletions

View file

@ -52,6 +52,8 @@
#if JUCE_WINDOWS
static void setParentProcessID (int);
static int getCurrentProcessID();
#else
#include <unistd.h>
#endif
//==============================================================================

View file

@ -1815,7 +1815,7 @@ private:
}
}
void processBlock (AudioBuffer<float>& buffer, MidiBuffer& midiBuffer) noexcept
void processBlock (juce::AudioBuffer<float>& buffer, MidiBuffer& midiBuffer) noexcept
{
const ScopedLock sl (juceFilter->getCallbackLock());

View file

@ -1130,7 +1130,7 @@ private:
AudioBufferList* bufferList = nullptr;
int maxFrames, numberOfChannels;
bool isInterleaved;
AudioBuffer<float> scratchBuffer;
juce::AudioBuffer<float> scratchBuffer;
};
//==============================================================================
@ -1557,7 +1557,7 @@ private:
return noErr;
}
void processBlock (AudioBuffer<float>& buffer, MidiBuffer& midiBuffer) noexcept
void processBlock (juce::AudioBuffer<float>& buffer, MidiBuffer& midiBuffer) noexcept
{
auto& processor = getAudioProcessor();
const ScopedLock sl (processor.getCallbackLock());

View file

@ -20,6 +20,10 @@
==============================================================================
*/
#if JUCE_MAC || JUCE_IOS
using OSType = uint32_t;
#endif
namespace juce
{

View file

@ -20,6 +20,10 @@
==============================================================================
*/
#if JUCE_MAC || JUCE_IOS
#include <libkern/OSByteOrder.h>
#endif
namespace juce
{

View file

@ -69,7 +69,8 @@
#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 <TargetConditionals.h> // (needed to find out what platform we're using)
#include <AvailabilityMacros.h>
#include "../native/juce_mac_ClangBugWorkaround.h"
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR

View file

@ -20,6 +20,20 @@
==============================================================================
*/
#if JUCE_MAC || JUCE_IOS
// Annoyingly we can only forward-declare a typedef by forward-declaring the
// aliased type
#if __has_attribute(objc_bridge)
#define JUCE_CF_BRIDGED_TYPE(T) __attribute__((objc_bridge(T)))
#else
#define JUCE_CF_BRIDGED_TYPE(T)
#endif
typedef const struct JUCE_CF_BRIDGED_TYPE(NSString) __CFString * CFStringRef;
#undef JUCE_CF_BRIDGED_TYPE
#endif
namespace juce
{