Skip to content

Commit

Permalink
ENH: Disallow deprecated macros in more files.
Browse files Browse the repository at this point in the history
  • Loading branch information
charris committed Jul 6, 2011
1 parent bc51f3b commit a842575
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions numpy/core/src/dummymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* configuration files before the libraries are made.
*/

#define NPY_NO_DEPRECATED_API

#include <Python.h>
#include <numpy/npy_3kcompat.h>

Expand Down
1 change: 1 addition & 0 deletions numpy/core/src/npymath/halffloat.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define NPY_NO_DEPRECATED_API
#include "numpy/halffloat.h"

/*
Expand Down
2 changes: 2 additions & 0 deletions numpy/core/src/npysort/sort.c.src
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
* The heap sort is included for completeness.
*/

#define NPY_NO_DEPRECATED_API

#include <stdlib.h>
#include "npy_sort.h"
#include "npysort_common.h"
Expand Down

0 comments on commit a842575

Please sign in to comment.