fix for build problem with audiospace and implicit declaration.
This commit is contained in:
parent
335b74a714
commit
7084be920a
@ -30,7 +30,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "AUD_Space.h"
|
#include "./intern/AUD_Space.h"
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
@ -124,7 +124,6 @@ int BPY_flag_from_seq(BPY_flag_def *flagdef, PyObject *seq, int *flag)
|
|||||||
|
|
||||||
|
|
||||||
/* Copied from pythons 3's Object.c */
|
/* Copied from pythons 3's Object.c */
|
||||||
#ifndef Py_CmpToRich
|
|
||||||
PyObject *
|
PyObject *
|
||||||
Py_CmpToRich(int op, int cmp)
|
Py_CmpToRich(int op, int cmp)
|
||||||
{
|
{
|
||||||
@ -160,7 +159,6 @@ Py_CmpToRich(int op, int cmp)
|
|||||||
Py_INCREF(res);
|
Py_INCREF(res);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* for debugging */
|
/* for debugging */
|
||||||
void PyObSpit(char *name, PyObject *var) {
|
void PyObSpit(char *name, PyObject *var) {
|
||||||
|
@ -50,6 +50,8 @@ void PyObSpit(char *name, PyObject *var);
|
|||||||
void PyLineSpit(void);
|
void PyLineSpit(void);
|
||||||
void BPY_getFileAndNum(char **filename, int *lineno);
|
void BPY_getFileAndNum(char **filename, int *lineno);
|
||||||
|
|
||||||
|
PyObject *Py_CmpToRich(int op, int cmp);
|
||||||
|
|
||||||
PyObject *BPY_exception_buffer(void);
|
PyObject *BPY_exception_buffer(void);
|
||||||
|
|
||||||
/* own python like utility function */
|
/* 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);
|
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 */
|
/* error reporting */
|
||||||
int BPy_reports_to_error(struct ReportList *reports);
|
int BPy_reports_to_error(struct ReportList *reports);
|
||||||
|
Loading…
Reference in New Issue
Block a user