diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-25 19:10:43 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-26 18:28:48 +0300 |
commit | a77175c9b6c06dadc1df3c654e0e000140a53a39 (patch) | |
tree | 121a661d9378d8ea8c43723898036173650aea5e /source/blender/gpu/intern/gpu_attr_binding_private.h | |
parent | 076d033e10eee29bfc8315344bd2ba1f0951ad06 (diff) |
GPU: Add extern "C" to intern headers
Diffstat (limited to 'source/blender/gpu/intern/gpu_attr_binding_private.h')
-rw-r--r-- | source/blender/gpu/intern/gpu_attr_binding_private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_attr_binding_private.h b/source/blender/gpu/intern/gpu_attr_binding_private.h index 301ec3333dd..7df403a3ea5 100644 --- a/source/blender/gpu/intern/gpu_attr_binding_private.h +++ b/source/blender/gpu/intern/gpu_attr_binding_private.h @@ -29,6 +29,11 @@ #include "GPU_shader_interface.h" #include "GPU_vertex_format.h" +#ifdef __cplusplus +extern "C" { +#endif + +/* TODO(fclem) remove, use shaderface directly. */ void AttrBinding_clear(GPUAttrBinding *binding); void get_attr_locations(const GPUVertFormat *format, @@ -36,4 +41,8 @@ void get_attr_locations(const GPUVertFormat *format, const GPUShaderInterface *shaderface); uint read_attr_location(const GPUAttrBinding *binding, uint a_idx); +#ifdef __cplusplus +} +#endif + #endif /* __GPU_ATTR_BINDING_PRIVATE_H__ */ |