python: Prevent warning about deprecated NumPy API.
Without this we get: /usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] As far as I'm aware we're not using any deprecated NumPy C API features. This fixes part of bug #417.
This commit is contained in:
parent
fa72105fe6
commit
e66728886f
|
@ -47,6 +47,7 @@ which provides access to the error code and description."
|
||||||
%{
|
%{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pygobject.h>
|
#include <pygobject.h>
|
||||||
|
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
||||||
#include <numpy/arrayobject.h>
|
#include <numpy/arrayobject.h>
|
||||||
|
|
||||||
PyObject *PyGObject_lib;
|
PyObject *PyGObject_lib;
|
||||||
|
|
Loading…
Reference in New Issue