diff options
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/console.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index f3e749ddd5..7ac997f514 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -442,7 +442,16 @@ static inline void sdl_display_init(DisplayState *ds, int full_screen, #endif /* cocoa.m */ +#ifdef CONFIG_COCOA void cocoa_display_init(DisplayState *ds, int full_screen); +#else +static inline void cocoa_display_init(DisplayState *ds, int full_screen) +{ + /* This must never be called if CONFIG_COCOA is disabled */ + error_report("Cocoa support is disabled"); + abort(); +} +#endif /* vnc.c */ void vnc_display_init(const char *id); |