[Mesa-dev] [PATCH 1/2] glapi: Add extern "C" to glapi_priv.h
Brian Paul
brianp at vmware.com
Wed May 13 11:55:40 PDT 2015
On 05/13/2015 12:25 PM, Alexander von Gluck IV wrote:
> * The Haiku glapi has a C++ wrapper around
> the dispatch code.
I think you can drop the "*" and put the comment on one line.
Otherwise, for both,
Reviewed-by: Brian Paul <brianp at vmware.com>
> ---
> src/mapi/glapi/glapi_priv.h | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/src/mapi/glapi/glapi_priv.h b/src/mapi/glapi/glapi_priv.h
> index 50f710e..337913a 100644
> --- a/src/mapi/glapi/glapi_priv.h
> +++ b/src/mapi/glapi/glapi_priv.h
> @@ -49,6 +49,10 @@ typedef void *GLeglImageOES;
> #include "glapi/glapi.h"
>
>
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> /* getproc */
>
> extern void
> @@ -106,4 +110,8 @@ get_entrypoint_address(unsigned int functionOffset);
> #define MAX_EXTENSION_FUNCS 256
>
>
> +#ifdef __cplusplus
> +}
> +#endif
> +
> #endif
>
More information about the mesa-dev
mailing list