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_rna.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/python/intern/bpy_rna.h') diff --git a/source/blender/python/intern/bpy_rna.h b/source/blender/python/intern/bpy_rna.h index 652d65fe64c..fadda9a8002 100644 --- a/source/blender/python/intern/bpy_rna.h +++ b/source/blender/python/intern/bpy_rna.h @@ -67,6 +67,10 @@ struct ID; +#ifdef __cplusplus +extern "C" { +#endif + extern PyTypeObject pyrna_struct_meta_idprop_Type; extern PyTypeObject pyrna_struct_Type; extern PyTypeObject pyrna_prop_Type; @@ -265,4 +269,8 @@ extern PyMethodDef meth_bpy_owner_id_get; extern BPy_StructRNA *bpy_context_module; +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3