mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Fix Xcode issue
This commit is contained in:
parent
d5a5380e6d
commit
c7ce2c7053
@ -48,31 +48,7 @@
|
|||||||
#include "../common/metal_common.h"
|
#include "../common/metal_common.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_COCOA_METAL)
|
#include "../../ui/drivers/cocoa/apple_platform.h"
|
||||||
id<ApplePlatform> apple_platform;
|
|
||||||
@interface RetroArch_OSX : NSObject <ApplePlatform, NSApplicationDelegate>
|
|
||||||
{
|
|
||||||
NSWindow* _window;
|
|
||||||
apple_view_type_t _vt;
|
|
||||||
NSView* _renderView;
|
|
||||||
id _sleepActivity;
|
|
||||||
WindowListener *_listener;
|
|
||||||
}
|
|
||||||
#elif defined(HAVE_COCOA)
|
|
||||||
id apple_platform;
|
|
||||||
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
|
|
||||||
@interface RetroArch_OSX : NSObject
|
|
||||||
#else
|
|
||||||
@interface RetroArch_OSX : NSObject <NSApplicationDelegate>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
NSWindow* _window;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@property (nonatomic, retain) NSWindow IBOutlet* window;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
typedef struct cocoa_ctx_data
|
typedef struct cocoa_ctx_data
|
||||||
{
|
{
|
||||||
|
30
ui/drivers/cocoa/apple_platform.h
Normal file
30
ui/drivers/cocoa/apple_platform.h
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#ifndef COCOA_APPLE_PLATFORM_H
|
||||||
|
#define COCOA_APPLE_PLATFORM_H
|
||||||
|
|
||||||
|
#if defined(HAVE_COCOA_METAL)
|
||||||
|
id<ApplePlatform> apple_platform;
|
||||||
|
@interface RetroArch_OSX : NSObject <ApplePlatform, NSApplicationDelegate>
|
||||||
|
{
|
||||||
|
NSWindow* _window;
|
||||||
|
apple_view_type_t _vt;
|
||||||
|
NSView* _renderView;
|
||||||
|
id _sleepActivity;
|
||||||
|
WindowListener *_listener;
|
||||||
|
}
|
||||||
|
#elif defined(HAVE_COCOA)
|
||||||
|
id apple_platform;
|
||||||
|
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
|
||||||
|
@interface RetroArch_OSX : NSObject
|
||||||
|
#else
|
||||||
|
@interface RetroArch_OSX : NSObject <NSApplicationDelegate>
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
NSWindow* _window;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@property (nonatomic, retain) NSWindow IBOutlet* window;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
#endif
|
@ -63,31 +63,7 @@
|
|||||||
@end
|
@end
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_COCOA_METAL)
|
#include "cocoa/apple_platform.h"
|
||||||
id<ApplePlatform> apple_platform;
|
|
||||||
@interface RetroArch_OSX : NSObject <ApplePlatform, NSApplicationDelegate>
|
|
||||||
{
|
|
||||||
NSWindow* _window;
|
|
||||||
apple_view_type_t _vt;
|
|
||||||
NSView* _renderView;
|
|
||||||
id _sleepActivity;
|
|
||||||
WindowListener *_listener;
|
|
||||||
}
|
|
||||||
#elif defined(HAVE_COCOA)
|
|
||||||
id apple_platform;
|
|
||||||
#if (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__)))
|
|
||||||
@interface RetroArch_OSX : NSObject
|
|
||||||
#else
|
|
||||||
@interface RetroArch_OSX : NSObject <NSApplicationDelegate>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
NSWindow* _window;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@property (nonatomic, retain) NSWindow IBOutlet* window;
|
|
||||||
|
|
||||||
@end
|
|
||||||
|
|
||||||
static void app_terminate(void)
|
static void app_terminate(void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user