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:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-11-29 13:42:18 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-11-29 16:39:54 +0300
commitfc2b966fc7235a99d73e9d40736adf70f86ce506 (patch)
treeba45269d4097bddcd39515c3d6f88c31bd254185 /source/blender/makesdna
parentff9d33a77cacc57c2eab2d92cd9742f9e901efe4 (diff)
Refactor: Add C++ guard code to headers
C++ is used more and more, and it is becoming more and more annoying to keep track of whether header have C++ guard or not. Is easier and more clear to be consistent in all headers and have such guards in all headers.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_action_types.h8
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h8
-rw-r--r--source/blender/makesdna/DNA_movieclip_types.h8
-rw-r--r--source/blender/makesdna/DNA_sequence_types.h8
4 files changed, 32 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h
index b7834e2c7e0..95e6437ae8d 100644
--- a/source/blender/makesdna/DNA_action_types.h
+++ b/source/blender/makesdna/DNA_action_types.h
@@ -28,6 +28,10 @@
#ifndef __DNA_ACTION_TYPES_H__
#define __DNA_ACTION_TYPES_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "DNA_listBase.h"
#include "DNA_ID.h"
#include "DNA_view2d_types.h"
@@ -955,4 +959,8 @@ typedef enum eActionChannelFlag {
ACHAN_MOVED = (1u << 31),
} eActionChannelFlag;
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __DNA_ACTION_TYPES_H__ */
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index fb9e522dfa9..60e0eb2976e 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -28,6 +28,10 @@
#include "DNA_ID.h"
#include "DNA_customdata_types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct AnimData;
struct Ipo;
struct Key;
@@ -277,4 +281,8 @@ enum {
#define MESH_MAX_VERTS 2000000000L
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/source/blender/makesdna/DNA_movieclip_types.h b/source/blender/makesdna/DNA_movieclip_types.h
index 8de79d9ea2b..2e0c43bdb51 100644
--- a/source/blender/makesdna/DNA_movieclip_types.h
+++ b/source/blender/makesdna/DNA_movieclip_types.h
@@ -24,6 +24,10 @@
#ifndef __DNA_MOVIECLIP_TYPES_H__
#define __DNA_MOVIECLIP_TYPES_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "DNA_ID.h"
#include "DNA_tracking_types.h"
#include "DNA_color_types.h" /* for color management */
@@ -207,4 +211,8 @@ enum {
MCLIP_PROXY_RENDER_USE_FALLBACK_RENDER = 2,
};
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/source/blender/makesdna/DNA_sequence_types.h b/source/blender/makesdna/DNA_sequence_types.h
index 8d9dc77c49b..fb941a61ae8 100644
--- a/source/blender/makesdna/DNA_sequence_types.h
+++ b/source/blender/makesdna/DNA_sequence_types.h
@@ -37,6 +37,10 @@
#include "DNA_vec_types.h"
#include "DNA_vfont_types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct Ipo;
struct MovieClip;
struct Scene;
@@ -680,4 +684,8 @@ enum {
SEQ_CACHE_PREFETCH_ENABLE = (1 << 10),
};
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __DNA_SEQUENCE_TYPES_H__ */