Fixed macOS build when video is disabled

Fixes https://github.com/libsdl-org/SDL/issues/14912
This commit is contained in:
Sam Lantinga
2026-01-29 14:29:46 -08:00
parent 696c12826f
commit 5f0c889082

View File

@@ -27,7 +27,11 @@
#import <Cocoa/Cocoa.h>
#import <UniformTypeIdentifiers/UTType.h>
#ifdef SDL_VIDEO_DRIVER_COCOA
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)
{