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:
Diffstat (limited to 'source/blender/gpu/GPU_element.h')
-rw-r--r--source/blender/gpu/GPU_element.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_element.h b/source/blender/gpu/GPU_element.h
index 996ade3e0f6..9aef8d6ed73 100644
--- a/source/blender/gpu/GPU_element.h
+++ b/source/blender/gpu/GPU_element.h
@@ -28,6 +28,10 @@
#include "GPU_primitive.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define GPU_TRACK_INDEX_RANGE 1
typedef enum {
@@ -109,4 +113,8 @@ int GPU_indexbuf_primitive_len(GPUPrimType prim_type);
} \
} while (0)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __GPU_ELEMENT_H__ */