forked from bartvdbraak/blender
MacOS: Use correct Cocoa protocol on any compiler
This commit is contained in:
parent
98052162e1
commit
076abf6cd8
@ -283,16 +283,7 @@ extern "C" int GHOST_HACK_getFirstFile(char buf[FIRSTFILEBUFLG])
|
||||
* CocoaAppDelegate
|
||||
* ObjC object to capture applicationShouldTerminate, and send quit event
|
||||
**/
|
||||
#if defined(__clang_major__) && __clang_major__ <= 7
|
||||
/* FIXME(merwin & Juicyfruit): long-term fix for proper protocol to use
|
||||
* merwin thinks NSApplicationDelegate is the correct protocol here. Has been around since 10.6 so we should be good... what's the problem?
|
||||
* https://developer.apple.com/reference/appkit/nsapplicationdelegate?language=objc
|
||||
*/
|
||||
@interface CocoaAppDelegate : NSObject <NSFileManagerDelegate> {
|
||||
#else
|
||||
/* for Xcode 8 */
|
||||
@interface CocoaAppDelegate : NSObject <NSApplicationDelegate> {
|
||||
#endif
|
||||
|
||||
GHOST_SystemCocoa *systemCocoa;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user