mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: put extern "C" in header files
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
4b342fbbb7
commit
3ebc135b4e
4 changed files with 41 additions and 0 deletions
|
|
@ -37,6 +37,11 @@
|
|||
#define _ENUMS_H_
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
extern const char *_mesa_lookup_enum_by_nr( int nr );
|
||||
|
||||
/* Get the name of an enum given that it is a primitive type. Avoids
|
||||
|
|
@ -44,4 +49,10 @@ extern const char *_mesa_lookup_enum_by_nr( int nr );
|
|||
*/
|
||||
const char *_mesa_lookup_prim_by_nr( unsigned nr );
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -27,6 +27,11 @@
|
|||
#ifndef SAMPLEROBJ_H
|
||||
#define SAMPLEROBJ_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
struct dd_function_table;
|
||||
|
||||
static inline struct gl_sampler_object *
|
||||
|
|
@ -103,4 +108,8 @@ _mesa_GetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint *params);
|
|||
void GLAPIENTRY
|
||||
_mesa_GetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint *params);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SAMPLEROBJ_H */
|
||||
|
|
|
|||
|
|
@ -27,9 +27,20 @@
|
|||
#define TEXENVPROGRAM_H
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
struct gl_context;
|
||||
|
||||
extern struct gl_shader_program *
|
||||
_mesa_get_fixed_func_fragment_program(struct gl_context *ctx);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -38,6 +38,11 @@
|
|||
#include "samplerobj.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* \name Internal functions
|
||||
*/
|
||||
|
|
@ -212,4 +217,9 @@ _mesa_InvalidateTexImage(GLuint texture, GLint level);
|
|||
/*@}*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue