diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-19 15:05:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-19 15:05:20 +0300 |
commit | 9ee1b3930fef6404f197a56363bee4f846bc2bb7 (patch) | |
tree | 2b65826a8268656e02b0c54ec4c12ebd5b1df146 /source/blender/python | |
parent | 48f232df73000c88d9eb6cf516d23afaa19f30f3 (diff) |
set main() argv functions to be const char *
also set minimum cmake version to 2.8
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/BPY_extern.h | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 5ee4664fd57..e559f0bf57b 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -60,7 +60,7 @@ void BPY_pyconstraint_update(struct Object *owner, struct bConstraint *con); int BPY_is_pyconstraint(struct Text *text); // void BPY_free_pyconstraint_links(struct Text *text); // -void BPY_python_start( int argc, char **argv ); +void BPY_python_start(int argc, const char **argv); void BPY_python_end( void ); // void init_syspath( int first_time ); // void syspath_append( char *dir ); diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index d07e50398d9..4ae1b41bb89 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -217,7 +217,7 @@ static struct _inittab bpy_internal_modules[]= { }; /* call BPY_context_set first */ -void BPY_python_start( int argc, char **argv ) +void BPY_python_start(int argc, const char **argv) { PyThreadState *py_tstate = NULL; |