From 25c99e72cdac0545ab5e2005b56a556313612758 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 22 Jan 2022 17:59:09 +1100 Subject: Fix linking in debug mode b7878a4d457a59d4a42f8ac0f428ea336562d75a seems to have caused linking issues building debug mode on Linux. Using extern "C" resolves. --- source/blender/bmesh/intern/bmesh_private.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source') diff --git a/source/blender/bmesh/intern/bmesh_private.h b/source/blender/bmesh/intern/bmesh_private.h index 977142578ca..4b3c4cbff82 100644 --- a/source/blender/bmesh/intern/bmesh_private.h +++ b/source/blender/bmesh/intern/bmesh_private.h @@ -27,6 +27,10 @@ * parts of the bmesh internals. */ +#ifdef __cplusplus +extern "C" { +#endif + /* returns positive nonzero on error */ #ifdef NDEBUG @@ -102,3 +106,7 @@ void poly_rotate_plane(const float normal[3], float (*verts)[3], uint nverts); /* include the rest of our private declarations */ #include "bmesh_structure.h" + +#ifdef __cplusplus +} +#endif -- cgit v1.2.3