From 51bce18b6f97dd6c21899e43f4ee4491d0061e92 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 2 Mar 2020 15:34:17 +0100 Subject: Cleanup: make blf header work in C++ --- source/blender/blenfont/BLF_api.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/blenfont/BLF_api.h') diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index 40abf93e944..fd6411f7c69 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -27,6 +27,10 @@ #include "BLI_compiler_attrs.h" #include "BLI_sys_types.h" +#ifdef __cplusplus +extern "C" { +#endif + /* enable this only if needed (unused circa 2016) */ #define BLF_BLUR_ENABLE 0 @@ -277,4 +281,8 @@ struct ResultBLF { int width; }; +#ifdef __cplusplus +} +#endif + #endif /* __BLF_API_H__ */ -- cgit v1.2.3