Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-03-02 17:28:47 +0300
committerJacques Lucke <jacques@blender.org>2020-03-02 17:29:09 +0300
commitf48b46860b57b7caf3d804267952cd43ecec089a (patch)
tree711d700d0d5240d499ef055ff168d65de5472af0 /source/blender/gpu/GPU_vertex_format.h
parent360443a48346dc7c22fc6627849515da490b6e7b (diff)
Cleanup: make remaining gpu headers work in C++
Diffstat (limited to 'source/blender/gpu/GPU_vertex_format.h')
-rw-r--r--source/blender/gpu/GPU_vertex_format.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_vertex_format.h b/source/blender/gpu/GPU_vertex_format.h
index b50665d0256..cbc20f37f27 100644
--- a/source/blender/gpu/GPU_vertex_format.h
+++ b/source/blender/gpu/GPU_vertex_format.h
@@ -30,6 +30,10 @@
#include "BLI_compiler_compat.h"
#include "BLI_assert.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define GPU_VERT_ATTR_MAX_LEN 16
#define GPU_VERT_ATTR_MAX_NAMES 6
#define GPU_VERT_ATTR_NAMES_BUF_LEN 256
@@ -185,4 +189,8 @@ BLI_INLINE GPUPackedNormal GPU_normal_convert_i10_s3(const short data[3])
return n;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __GPU_VERTEX_FORMAT_H__ */