From f48b46860b57b7caf3d804267952cd43ecec089a Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 2 Mar 2020 15:28:47 +0100 Subject: Cleanup: make remaining gpu headers work in C++ --- source/blender/gpu/GPU_shader_interface.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/gpu/GPU_shader_interface.h') diff --git a/source/blender/gpu/GPU_shader_interface.h b/source/blender/gpu/GPU_shader_interface.h index e336aa53d24..c636135d75b 100644 --- a/source/blender/gpu/GPU_shader_interface.h +++ b/source/blender/gpu/GPU_shader_interface.h @@ -28,6 +28,10 @@ #include "GPU_common.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { GPU_UNIFORM_NONE = 0, /* uninitialized/unknown */ @@ -100,4 +104,8 @@ const GPUShaderInput *GPU_shaderinterface_attr(const GPUShaderInterface *, const void GPU_shaderinterface_add_batch_ref(GPUShaderInterface *, struct GPUBatch *); void GPU_shaderinterface_remove_batch_ref(GPUShaderInterface *, struct GPUBatch *); +#ifdef __cplusplus +} +#endif + #endif /* __GPU_SHADER_INTERFACE_H__ */ -- cgit v1.2.3