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/blenkernel/BKE_sound.h
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/blenkernel/BKE_sound.h')
-rw-r--r--source/blender/blenkernel/BKE_sound.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_sound.h b/source/blender/blenkernel/BKE_sound.h
index 1567985bd53..6807d81daa3 100644
--- a/source/blender/blenkernel/BKE_sound.h
+++ b/source/blender/blenkernel/BKE_sound.h
@@ -23,6 +23,10 @@
* \ingroup bke
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define SOUND_WAVE_SAMPLES_PER_SECOND 250
#if defined(WITH_AUDASPACE)
@@ -190,4 +194,8 @@ struct Depsgraph;
void BKE_sound_evaluate(struct Depsgraph *depsgraph, struct Main *bmain, struct bSound *sound);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __BKE_SOUND_H__ */