From b274d18aec525621bcb0a2234fc65e09398616c2 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 28 Jul 2020 16:32:30 +0200 Subject: Cleanup: correct usage of extern-C blocks in various places This removes extern-C blocks around other includes and adds such blocks for some headers that need them. --- source/blender/python/intern/bpy_capi_utils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/python/intern/bpy_capi_utils.h') diff --git a/source/blender/python/intern/bpy_capi_utils.h b/source/blender/python/intern/bpy_capi_utils.h index 97344ce1326..46206f134ba 100644 --- a/source/blender/python/intern/bpy_capi_utils.h +++ b/source/blender/python/intern/bpy_capi_utils.h @@ -25,6 +25,10 @@ # error "Python 3.7 or greater is required, you'll need to update your Python." #endif +#ifdef __cplusplus +extern "C" { +#endif + struct EnumPropertyItem; struct ReportList; @@ -50,4 +54,8 @@ void BPy_SetContext(struct bContext *C); extern void bpy_context_set(struct bContext *C, PyGILState_STATE *gilstate); extern void bpy_context_clear(struct bContext *C, const PyGILState_STATE *gilstate); +#ifdef __cplusplus +} +#endif + #endif /* __BPY_CAPI_UTILS_H__ */ -- cgit v1.2.3