Browse Source

Build: Fix Xcode 11.4 compatibility issues

tags/2021-05-28
reuk 5 years ago
parent
commit
dddeb1ad68
7 changed files with 29 additions and 4 deletions
  1. +2
    -0
      extras/Projucer/Source/LiveBuildEngine/jucer_CompileEngineServer.cpp
  2. +1
    -1
      modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm
  3. +2
    -2
      modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm
  4. +4
    -0
      modules/juce_core/files/juce_File.h
  5. +4
    -0
      modules/juce_core/memory/juce_ByteOrder.h
  6. +2
    -1
      modules/juce_core/system/juce_TargetPlatform.h
  7. +14
    -0
      modules/juce_core/text/juce_String.h

+ 2
- 0
extras/Projucer/Source/LiveBuildEngine/jucer_CompileEngineServer.cpp View File

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


+ 1
- 1
modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm 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());


+ 2
- 2
modules/juce_audio_plugin_client/AU/juce_AUv3_Wrapper.mm 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());


+ 4
- 0
modules/juce_core/files/juce_File.h View File

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


+ 4
- 0
modules/juce_core/memory/juce_ByteOrder.h View File

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


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


+ 14
- 0
modules/juce_core/text/juce_String.h 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
{


Loading…
Cancel
Save