diff options
Diffstat (limited to 'source/blender/python/intern/bpy.h')
-rw-r--r-- | source/blender/python/intern/bpy.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy.h b/source/blender/python/intern/bpy.h index 88d1db6f8bc..744bf903443 100644 --- a/source/blender/python/intern/bpy.h +++ b/source/blender/python/intern/bpy.h @@ -18,8 +18,11 @@ * \ingroup pythonintern */ -#ifndef __BPY_H__ -#define __BPY_H__ +#pragma once + +#ifdef __cplusplus +extern "C" { +#endif void BPy_init_modules(void); extern PyObject *bpy_package_py; @@ -31,4 +34,6 @@ void BPY_atexit_unregister(void); extern struct CLG_LogRef *BPY_LOG_CONTEXT; extern struct CLG_LogRef *BPY_LOG_RNA; -#endif /* __BPY_H__ */ +#ifdef __cplusplus +} +#endif |