[PATCH] Wayland: Add missing extern "C"

Kristian Høgsberg hoegsberg at gmail.com
Wed May 23 06:35:30 PDT 2012


On Wed, May 23, 2012 at 02:14:30PM +0800, yan.wang at linux.intel.com wrote:
> From: Yan Wang <yan.wang at linux.intel.com>
> 
> Add extern "C" macro definition for C++.

That's better, thanks.
Kristian

> ---
>  cursor/wayland-cursor.h |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/cursor/wayland-cursor.h b/cursor/wayland-cursor.h
> index 154cd84..f8bf8d1 100644
> --- a/cursor/wayland-cursor.h
> +++ b/cursor/wayland-cursor.h
> @@ -25,6 +25,10 @@
>  
>  #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
> -- 
> 1.7.7.6
> 


More information about the wayland-devel mailing list