mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
Fixed macOS build when video is disabled
Fixes https://github.com/libsdl-org/SDL/issues/14912
This commit is contained in:
@@ -27,7 +27,11 @@
|
|||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
#import <UniformTypeIdentifiers/UTType.h>
|
#import <UniformTypeIdentifiers/UTType.h>
|
||||||
|
|
||||||
|
#ifdef SDL_VIDEO_DRIVER_COCOA
|
||||||
extern void Cocoa_SetWindowHasModalDialog(SDL_Window *window, bool has_modal);
|
extern void Cocoa_SetWindowHasModalDialog(SDL_Window *window, bool has_modal);
|
||||||
|
#else
|
||||||
|
#define Cocoa_SetWindowHasModalDialog(window, has_modal)
|
||||||
|
#endif
|
||||||
|
|
||||||
static void AddFileExtensionType(NSMutableArray *types, const char *pattern_ptr)
|
static void AddFileExtensionType(NSMutableArray *types, const char *pattern_ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user