Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-04-02 17:18:54 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-04-02 17:18:54 +0400
commit594040f7694a081e4ec88555ba65ae798f6243f2 (patch)
treef925ce9dec26aa4fcf721e7fc2bb226bcab7dae3 /source
parent2ccb9cf7858b390d2b955cfd911942fb866d530b (diff)
Allow C++ linkage for the python module.
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/BPY_extern.h7
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