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-07-28 17:37:01 +0300
committerJacques Lucke <jacques@blender.org>2020-07-28 17:37:01 +0300
commit814ca40c639c74c48ec5e5b1a078b3b9884a9fad (patch)
treeb50abb9b7dbd376563205a4976f27fb4bd93c006 /source/blender/python/intern/bpy_capi_utils.h
parentfcf91bbf0daefa8ffdcbae7ce707115ec4fd5eb0 (diff)
parent67c33caeec364a9dbded75812ac7b0b76e14c203 (diff)
Merge branch 'blender-v2.90-release'
Diffstat (limited to 'source/blender/python/intern/bpy_capi_utils.h')
-rw-r--r--source/blender/python/intern/bpy_capi_utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_capi_utils.h b/source/blender/python/intern/bpy_capi_utils.h
index 2d654336f8f..11409397028 100644
--- a/source/blender/python/intern/bpy_capi_utils.h
+++ b/source/blender/python/intern/bpy_capi_utils.h
@@ -25,6 +25,10 @@
# error "Python 3.7 or greater is required, you'll need to update your Python."
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct EnumPropertyItem;
struct ReportList;
@@ -52,4 +56,8 @@ void BPy_SetContext(struct bContext *C);
extern void bpy_context_set(struct bContext *C, PyGILState_STATE *gilstate);
extern void bpy_context_clear(struct bContext *C, const PyGILState_STATE *gilstate);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __BPY_CAPI_UTILS_H__ */