Fix iOS build

This commit is contained in:
Twinaphex 2018-06-21 08:37:08 +02:00
parent 3799a33efa
commit 511044270b
2 changed files with 4 additions and 2 deletions

View File

@ -37,13 +37,15 @@ typedef enum apple_view_type {
} apple_view_type_t;
@protocol PlatformDelegate
#ifdef HAVE_METAL
@optional
- (void)viewDidUpdateFrame:(NSRect)rect;
#endif
@end
@protocol ApplePlatform
@property (readwrite) id<PlatformDelegate> delegate;
@property (readwrite,retain) id<PlatformDelegate> delegate;
/*!
@brief viewHandle returns an appropriate handle for the current view type

View File

@ -41,7 +41,7 @@
#endif
static char msg_old[PATH_MAX_LENGTH];
static id<ApplePlatform> apple_platform;
id<ApplePlatform> apple_platform;
static CFRunLoopObserverRef iterate_observer;
/* forward declaration */