summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/ndarraytypes.h6
-rw-r--r--numpy/core/src/multiarray/conversion_utils.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/numpy/core/include/numpy/ndarraytypes.h b/numpy/core/include/numpy/ndarraytypes.h
index 9a610908f..616738d56 100644
--- a/numpy/core/include/numpy/ndarraytypes.h
+++ b/numpy/core/include/numpy/ndarraytypes.h
@@ -449,12 +449,6 @@ typedef struct {
int len;
} PyArray_Dims;
-typedef enum {
- NPY_COPY_IF_NEEDED = 0,
- NPY_COPY_ALWAYS = 1,
- NPY_COPY_NEVER = 2,
-} _PyArray_CopyMode;
-
typedef struct {
/*
* Functions to cast to most other standard types
diff --git a/numpy/core/src/multiarray/conversion_utils.h b/numpy/core/src/multiarray/conversion_utils.h
index 643b67d59..4072841ee 100644
--- a/numpy/core/src/multiarray/conversion_utils.h
+++ b/numpy/core/src/multiarray/conversion_utils.h
@@ -9,6 +9,12 @@ PyArray_IntpConverter(PyObject *obj, PyArray_Dims *seq);
NPY_NO_EXPORT int
PyArray_OptionalIntpConverter(PyObject *obj, PyArray_Dims *seq);
+typedef enum {
+ NPY_COPY_IF_NEEDED = 0,
+ NPY_COPY_ALWAYS = 1,
+ NPY_COPY_NEVER = 2,
+} _PyArray_CopyMode;
+
NPY_NO_EXPORT int
PyArray_CopyConverter(PyObject *obj, _PyArray_CopyMode *copyflag);