From d860f0cbecbb647b0c91bb1e912af0dd19831615 Mon Sep 17 00:00:00 2001 From: Yan Wang Date: Wed, 23 May 2012 14:14:30 +0800 Subject: [PATCH] Wayland: Add missing extern "C" Add extern "C" macro definition for C++. --- cursor/wayland-cursor.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cursor/wayland-cursor.h b/cursor/wayland-cursor.h index 154cd84d..f8bf8d12 100644 --- a/cursor/wayland-cursor.h +++ b/cursor/wayland-cursor.h @@ -25,6 +25,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + enum wl_cursor_type { WL_CURSOR_BOTTOM_LEFT, WL_CURSOR_BOTTOM_RIGHT, @@ -75,4 +79,8 @@ wl_cursor_theme_get_cursor_by_name(struct wl_cursor_theme *theme, struct wl_buffer * wl_cursor_image_get_buffer(struct wl_cursor_image *image); +#ifdef __cplusplus +} +#endif + #endif