cocoa: cocoa_display_init() stub
One less #ifdef in vl.c. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
476db0814d
commit
e35ee7c1aa
|
@ -442,7 +442,16 @@ static inline void sdl_display_init(DisplayState *ds, int full_screen,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* cocoa.m */
|
/* cocoa.m */
|
||||||
|
#ifdef CONFIG_COCOA
|
||||||
void cocoa_display_init(DisplayState *ds, int full_screen);
|
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 */
|
/* vnc.c */
|
||||||
void vnc_display_init(const char *id);
|
void vnc_display_init(const char *id);
|
||||||
|
|
2
vl.c
2
vl.c
|
@ -4545,11 +4545,9 @@ int main(int argc, char **argv, char **envp)
|
||||||
case DT_SDL:
|
case DT_SDL:
|
||||||
sdl_display_init(ds, full_screen, no_frame);
|
sdl_display_init(ds, full_screen, no_frame);
|
||||||
break;
|
break;
|
||||||
#if defined(CONFIG_COCOA)
|
|
||||||
case DT_COCOA:
|
case DT_COCOA:
|
||||||
cocoa_display_init(ds, full_screen);
|
cocoa_display_init(ds, full_screen);
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_GTK)
|
#if defined(CONFIG_GTK)
|
||||||
case DT_GTK:
|
case DT_GTK:
|
||||||
gtk_display_init(ds, full_screen, grab_on_hover);
|
gtk_display_init(ds, full_screen, grab_on_hover);
|
||||||
|
|
Loading…
Reference in a new issue