diff options
author | Jacques Lucke <jacques@blender.org> | 2020-03-02 17:34:17 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-03-02 17:34:17 +0300 |
commit | 51bce18b6f97dd6c21899e43f4ee4491d0061e92 (patch) | |
tree | 5254a1862cef00a71a71c2a6500146853e19f3de /source/blender/blenfont/BLF_api.h | |
parent | f48b46860b57b7caf3d804267952cd43ecec089a (diff) |
Cleanup: make blf header work in C++
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r-- | source/blender/blenfont/BLF_api.h | 8 |
1 files changed, 8 insertions, 0 deletions
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__ */ |