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:
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r--source/blender/blenlib/BLI_math_base.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h
index e76c41970c6..c456ab0ecef 100644
--- a/source/blender/blenlib/BLI_math_base.h
+++ b/source/blender/blenlib/BLI_math_base.h
@@ -93,6 +93,10 @@ static const int NAN_INT = 0x7FC00000;
# pragma GCC diagnostic ignored "-Wredundant-decls"
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/******************************* Float ******************************/
MINLINE float pow2f(float x);
@@ -282,4 +286,8 @@ double double_round(double x, int ndigits);
# define BLI_ASSERT_UNIT_M3(m) (void)(m)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __BLI_MATH_BASE_H__ */