diff options
Diffstat (limited to 'source/blender/python/intern/bpy_capi_utils.h')
-rw-r--r-- | source/blender/python/intern/bpy_capi_utils.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_capi_utils.h b/source/blender/python/intern/bpy_capi_utils.h index 2d654336f8f..11409397028 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; @@ -52,4 +56,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__ */ |