aboutsummaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2016-04-19 16:55:21 -0300
committerEduardo Habkost <ehabkost@redhat.com>2016-05-20 14:28:53 -0300
commite35ee7c1aa1f257d3e0e52422cf4bd79d3b68d58 (patch)
tree520474c2be6b0a4fdaee3187921f1e716ea1beaf /include/ui
parent476db0814d8953e6c5f2dd0299249be3a751fc6a (diff)
cocoa: cocoa_display_init() stub
One less #ifdef in vl.c. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/console.h9
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);