[Mesa-dev] [PATCH 3/5] gallium/winsys: Add needed extern "C" to hgl winsys

Brian Paul brianp at vmware.com
Thu May 14 16:01:34 PDT 2015


The prefix for this commit message should probably be "winsys/hgl:"


On 05/14/2015 04:39 PM, Alexander von Gluck IV wrote:
> ---
>   src/gallium/winsys/sw/hgl/hgl_sw_winsys.h |    7 +++++++
>   1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h b/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h
> index bdcddfb..a81f890 100644
> --- a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h
> +++ b/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h
> @@ -27,9 +27,16 @@
>   #ifndef _HGL_SOFTWAREWINSYS_H
>   #define _HGL_SOFTWAREWINSYS_H
>
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>   struct sw_winsys;
>
>   struct sw_winsys* hgl_create_sw_winsys(void);
>
> +#ifdef __cplusplus
> +}
> +#endif
>
>   #endif
>



More information about the mesa-dev mailing list