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 | |
parent | 335b74a7143dc328e1c216176fb04b207ced8ee7 (diff) |
fix for build problem with audiospace and implicit declaration.
-rw-r--r-- | intern/audaspace/AUD_C-API.h | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_util.c | 2 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_util.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/intern/audaspace/AUD_C-API.h b/intern/audaspace/AUD_C-API.h index b08f05db1ca..1c3a4b94624 100644 --- a/intern/audaspace/AUD_C-API.h +++ b/intern/audaspace/AUD_C-API.h @@ -30,7 +30,7 @@ extern "C" { #endif -#include "AUD_Space.h" +#include "./intern/AUD_Space.h" typedef enum { 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); |