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:07:49 +0300
committerJacques Lucke <jacques@blender.org>2020-03-02 17:07:49 +0300
commit5de56f95966352cda588d3c830f73dfaa1c19412 (patch)
tree5f71cd37d5ebc1dbe69ef5df4b365c3e6df95b00 /source/blender/blenkernel/BKE_undo_system.h
parentcf93b65a65f948d4014d3fd2f7541ffe1b2209d4 (diff)
Cleanup: make remaining blenkernel headers work in C++
Diffstat (limited to 'source/blender/blenkernel/BKE_undo_system.h')
-rw-r--r--source/blender/blenkernel/BKE_undo_system.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_undo_system.h b/source/blender/blenkernel/BKE_undo_system.h
index bc10d422a61..c503215be1f 100644
--- a/source/blender/blenkernel/BKE_undo_system.h
+++ b/source/blender/blenkernel/BKE_undo_system.h
@@ -20,6 +20,13 @@
* \ingroup bke
*/
+#include "DNA_ID.h"
+#include "DNA_listBase.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct Main;
struct UndoStep;
struct bContext;
@@ -31,9 +38,6 @@ struct Object;
struct Scene;
struct Text;
-#include "DNA_ID.h"
-#include "DNA_listBase.h"
-
typedef struct UndoRefID {
struct ID *ptr;
char name[MAX_ID_NAME];
@@ -198,4 +202,8 @@ void BKE_undosys_foreach_ID_ref(UndoStack *ustack,
void BKE_undosys_print(UndoStack *ustack);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __BKE_UNDO_SYSTEM_H__ */