Wayland: Add missing extern "C"
authorYan Wang <yan.wang@linux.intel.com>
Wed, 23 May 2012 06:14:30 +0000 (14:14 +0800)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 23 May 2012 13:32:03 +0000 (09:32 -0400)
Add extern "C" macro definition for C++.

cursor/wayland-cursor.h

index 154cd84..f8bf8d1 100644 (file)
 
 #include <stdint.h>
 
+#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