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_attr_binding.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/gpu/GPU_attr_binding.h') diff --git a/source/blender/gpu/GPU_attr_binding.h b/source/blender/gpu/GPU_attr_binding.h index 2fa892bf805..8093e02cab6 100644 --- a/source/blender/gpu/GPU_attr_binding.h +++ b/source/blender/gpu/GPU_attr_binding.h @@ -28,6 +28,10 @@ #include "GPU_common.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef struct GPUAttrBinding { /** Store 4 bits for each of the 16 attributes. */ uint64_t loc_bits; @@ -35,4 +39,8 @@ typedef struct GPUAttrBinding { uint16_t enabled_bits; } GPUAttrBinding; +#ifdef __cplusplus +} +#endif + #endif /* __GPU_ATTR_BINDING_H__ */ -- cgit v1.2.3