diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-10 08:50:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-10 08:50:48 +0400 |
commit | 7084be920a0acb95e2db84bb7029a65bc7a76d9a (patch) | |
tree | e7159bcddfc48fc1c11e0d77e5d7ef4c9a44db7e /source/blender | |
parent | 335b74a7143dc328e1c216176fb04b207ced8ee7 (diff) |
fix for build problem with audiospace and implicit declaration.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/intern/bpy_util.c | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_util.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_util.c b/source/blender/python/intern/bpy_util.c index 25967d96dab..1e73e357526 100644 --- a/source/blender/python/intern/bpy_util.c +++ b/source/blender/python/intern/bpy_util.c @@ -124,7 +124,6 @@ int BPY_flag_from_seq(BPY_flag_def *flagdef, PyObject *seq, int *flag) /* Copied from pythons 3's Object.c */ -#ifndef Py_CmpToRich PyObject * Py_CmpToRich(int op, int cmp) { @@ -160,7 +159,6 @@ Py_CmpToRich(int op, int cmp) Py_INCREF(res); return res; } -#endif /* for debugging */ void PyObSpit(char *name, PyObject *var) { diff --git a/source/blender/python/intern/bpy_util.h b/source/blender/python/intern/bpy_util.h index 3a47691e79f..0400d595520 100644 --- a/source/blender/python/intern/bpy_util.h +++ b/source/blender/python/intern/bpy_util.h @@ -50,6 +50,8 @@ void PyObSpit(char *name, PyObject *var); void PyLineSpit(void); void BPY_getFileAndNum(char **filename, int *lineno); +PyObject *Py_CmpToRich(int op, int cmp); + PyObject *BPY_exception_buffer(void); /* own python like utility function */ @@ -75,7 +77,7 @@ int BPY_class_validate(const char *class_type, PyObject *class, PyObject *base_c char *BPy_enum_as_string(struct EnumPropertyItem *item); -#define BLANK_PYTHON_TYPE {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} +#define BLANK_PYTHON_TYPE {PyVarObject_HEAD_INIT(NULL, 0) 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} /* error reporting */ int BPy_reports_to_error(struct ReportList *reports); |