8000 Fix NPY_NO_DEPRECATED_API include Python includes for numpy-1.7 · numpy/numpy-dtypes@9cf5214 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 25, 2022. It is now read-only.

Commit 9cf5214

Browse files
committed
Fix NPY_NO_DEPRECATED_API include Python includes for numpy-1.7
1 parent 39d18aa commit 9cf5214

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

npytypes/rational/rational.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* Fixed size rational numbers exposed to Python */
22

3-
#define NPY_NO_DEPRECATED_API
3+
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
44

55
#include <stdint.h>
66
#include <math.h>
7-
#include <Python/Python.h>
8-
#include <Python/structmember.h>
7+
#include <Python.h>
8+
#include <structmember.h>
99
#include <numpy/arrayobject.h>
1010
#include <numpy/ufuncobject.h>
1111

0 commit comments

Comments
 (0)
0