diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2021-09-03 14:52:20 -0600 |
|---|---|---|
| committer | Charles Harris <charlesr.harris@gmail.com> | 2021-09-03 15:06:51 -0600 |
| commit | 7653829fa0d409d5850566cda1c031d9fadc1c22 (patch) | |
| tree | db802a0682e5e1876e00ba2b8f908c0081c37f11 /numpy/core/src/npymath | |
| parent | 410a89ef04a2d3c50dd2dba2ad403c872c3745ac (diff) | |
| download | numpy-7653829fa0d409d5850566cda1c031d9fadc1c22.tar.gz | |
STY: Small cleanups of includes in *.c files.
This puts the following numpy defines at the top of the files before
the includes.
define NPY_NO_DEPRECATED_API NPY_API_VERSION
define _MULTIARRAYMODULE
define _UMATHMODULE
There are also minor cleanups of <...> vs "..." include styles together
with a small fix to the .clang-format file to include "pymem.h" among
the Python supplied headers.
Further cleanups will follow if clang-format is used on the files but
that is not done here.
Diffstat (limited to 'numpy/core/src/npymath')
| -rw-r--r-- | numpy/core/src/npymath/halffloat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/npymath/halffloat.c b/numpy/core/src/npymath/halffloat.c index cbaa11e43..51948c736 100644 --- a/numpy/core/src/npymath/halffloat.c +++ b/numpy/core/src/npymath/halffloat.c @@ -1,4 +1,5 @@ #define NPY_NO_DEPRECATED_API NPY_API_VERSION + #include "numpy/halffloat.h" /* |
