[Bf-blender-cvs] [51bce18b6f9] master: Cleanup: make blf header work in C++
Jacques Lucke
noreply at git.blender.org
Mon Mar 2 15:34:52 CET 2020
Commit: 51bce18b6f97dd6c21899e43f4ee4491d0061e92
Author: Jacques Lucke
Date: Mon Mar 2 15:34:17 2020 +0100
Branches: master
https://developer.blender.org/rB51bce18b6f97dd6c21899e43f4ee4491d0061e92
Cleanup: make blf header work in C++
===================================================================
M 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__ */
More information about the Bf-blender-cvs
mailing list