[Bf-blender-cvs] [d1da2f0b9e4] master: Fix: Add extern "C" to RNA_enum_types.h

Jacques Lucke noreply at git.blender.org
Mon Apr 20 15:59:11 CEST 2020


Commit: d1da2f0b9e4e15150122a5015896dc864cdd121d
Author: Jacques Lucke
Date:   Mon Apr 20 15:58:30 2020 +0200
Branches: master
https://developer.blender.org/rBd1da2f0b9e4e15150122a5015896dc864cdd121d

Fix: Add extern "C" to RNA_enum_types.h

===================================================================

M	source/blender/makesrna/RNA_enum_types.h

===================================================================

diff --git a/source/blender/makesrna/RNA_enum_types.h b/source/blender/makesrna/RNA_enum_types.h
index b2f9c90b7f5..b6bae805636 100644
--- a/source/blender/makesrna/RNA_enum_types.h
+++ b/source/blender/makesrna/RNA_enum_types.h
@@ -23,6 +23,10 @@
 
 #include "RNA_types.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct bNodeSocketType;
 struct bNodeTreeType;
 struct bNodeType;
@@ -317,4 +321,8 @@ const EnumPropertyItem *RNA_mask_local_itemf(struct bContext *C,
 /* Non confirming, utility function. */
 const EnumPropertyItem *RNA_enum_node_tree_types_itemf_impl(struct bContext *C, bool *r_free);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __RNA_ENUM_TYPES_H__ */



More information about the Bf-blender-cvs mailing list