diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-04-02 17:18:54 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-04-02 17:18:54 +0400 |
commit | 594040f7694a081e4ec88555ba65ae798f6243f2 (patch) | |
tree | f925ce9dec26aa4fcf721e7fc2bb226bcab7dae3 /source/blender/python/BPY_extern.h | |
parent | 2ccb9cf7858b390d2b955cfd911942fb866d530b (diff) |
Allow C++ linkage for the python module.
Diffstat (limited to 'source/blender/python/BPY_extern.h')
-rw-r--r-- | source/blender/python/BPY_extern.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 608f1f2d1f0..55898994262 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -42,6 +42,9 @@ struct Script; /* defined in BPI_script.h */ /* struct _object; // forward declaration for PyObject ! */ +#ifdef __cplusplus +extern "C" { +#endif void BPY_start_python(void); void BPY_end_python(void); @@ -71,3 +74,7 @@ void BPY_free_finished_script(struct Script *script); void init_syspath(void); void syspath_append(char *dir); + +#ifdef __cplusplus +} /* extern "C" */ +#endif |