From 5efd2b7f36fbe2444e77d2b7b275d793da997c84 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 18 Nov 2014 10:55:46 +0100 Subject: correct another problem with BLI_assert need to use extern C for C++ --- source/blender/blenlib/BLI_utildefines.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/blenlib') diff --git a/source/blender/blenlib/BLI_utildefines.h b/source/blender/blenlib/BLI_utildefines.h index a6dee7fd263..9a8877e39c3 100644 --- a/source/blender/blenlib/BLI_utildefines.h +++ b/source/blender/blenlib/BLI_utildefines.h @@ -32,6 +32,10 @@ * \ingroup bli */ +#ifdef __cplusplus +extern "C" { +#endif + /* avoid many includes for now */ #include "BLI_sys_types.h" #include "BLI_compiler_compat.h" @@ -560,4 +564,8 @@ extern void BLI_system_backtrace(FILE *fp); # define UNLIKELY(x) (x) #endif +#ifdef __cplusplus +} +#endif + #endif /* __BLI_UTILDEFINES_H__ */ -- cgit v1.2.3