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

Xcode15: Allow older llvm versions when compiling with Xcode 15

This commit is contained in:
Anthony Nicholls 2023-09-22 14:05:17 +01:00
parent 1f90ecf6e3
commit 59d91cff1e
5 changed files with 18 additions and 5 deletions

View file

@ -104,7 +104,9 @@ void registerDemos_Two() noexcept
#if ! (JUCE_LINUX || JUCE_BSD) #if ! (JUCE_LINUX || JUCE_BSD)
REGISTER_DEMO (VideoDemo, GUI, true) REGISTER_DEMO (VideoDemo, GUI, true)
#endif #endif
#if JUCE_WEB_BROWSER
REGISTER_DEMO (WebBrowserDemo, GUI, true) REGISTER_DEMO (WebBrowserDemo, GUI, true)
#endif
REGISTER_DEMO (WidgetsDemo, GUI, false) REGISTER_DEMO (WidgetsDemo, GUI, false)
REGISTER_DEMO (WindowsDemo, GUI, false) REGISTER_DEMO (WindowsDemo, GUI, false)
} }

View file

@ -46,6 +46,8 @@
#pragma once #pragma once
#if JUCE_WEB_BROWSER
#include "../Assets/DemoUtilities.h" #include "../Assets/DemoUtilities.h"
//============================================================================== //==============================================================================
@ -148,3 +150,5 @@ private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WebBrowserDemo) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WebBrowserDemo)
}; };
#endif

View file

@ -101,7 +101,11 @@ public:
WorkgroupProvider clone() const WorkgroupProvider clone() const
{ {
return WorkgroupProvider { handle != nullptr ? os_retain (handle.get()) : nullptr }; if (handle == nullptr)
return WorkgroupProvider { nullptr };
os_retain (handle.get());
return WorkgroupProvider { handle.get() };
} }
void join (WorkgroupToken& token) const void join (WorkgroupToken& token) const

View file

@ -49,7 +49,6 @@
//============================================================================== //==============================================================================
#if JUCE_MAC #if JUCE_MAC
#import <WebKit/WebKit.h>
#import <IOKit/pwr_mgt/IOPMLib.h> #import <IOKit/pwr_mgt/IOPMLib.h>
#import <MetalKit/MetalKit.h> #import <MetalKit/MetalKit.h>

View file

@ -49,7 +49,9 @@
//============================================================================== //==============================================================================
#if JUCE_MAC #if JUCE_MAC
#if JUCE_WEB_BROWSER
#import <WebKit/WebKit.h> #import <WebKit/WebKit.h>
#endif
#import <IOKit/IOKitLib.h> #import <IOKit/IOKitLib.h>
#import <IOKit/IOCFPlugIn.h> #import <IOKit/IOCFPlugIn.h>
#import <IOKit/hid/IOHIDLib.h> #import <IOKit/hid/IOHIDLib.h>
@ -64,7 +66,9 @@
//============================================================================== //==============================================================================
#elif JUCE_IOS #elif JUCE_IOS
#if JUCE_WEB_BROWSER
#import <WebKit/WebKit.h> #import <WebKit/WebKit.h>
#endif
#if JUCE_PUSH_NOTIFICATIONS #if JUCE_PUSH_NOTIFICATIONS
#import <UserNotifications/UserNotifications.h> #import <UserNotifications/UserNotifications.h>