diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2021-10-25 03:39:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-25 03:39:27 -0600 |
| commit | cfb981013322ffce43ec5e86f244f5aa27aa4a42 (patch) | |
| tree | f34453a535a305c94a7bede0f2a33e6bc2a5aeb0 /numpy | |
| parent | 18d1a53335381b461916e342552ad4934e4c0f19 (diff) | |
| parent | 7c857c850f8502b637fb5fa91120156ff6795593 (diff) | |
| download | numpy-cfb981013322ffce43ec5e86f244f5aa27aa4a42.tar.gz | |
Merge pull request #20183 from serge-sans-paille/feature/to-cxx-and-beyond-patch0
Thin compatibility layer for C/C++ math header
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/src/npymath/npy_math_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/src/npymath/npy_math_private.h b/numpy/core/src/npymath/npy_math_private.h index d475919b0..7ca0c5ba0 100644 --- a/numpy/core/src/npymath/npy_math_private.h +++ b/numpy/core/src/npymath/npy_math_private.h @@ -19,7 +19,13 @@ #define _NPY_MATH_PRIVATE_H_ #include <Python.h> +#ifdef __cplusplus +#include <cmath> +using std::isgreater; +using std::isless; +#else #include <math.h> +#endif #include "npy_config.h" #include "npy_fpmath.h" |
