Skip to content

Commit 0c10429

Browse files
committed
Add #error "PYBIND11_NUMPY_1_ONLY is no longer supported." in pybind11/numpy.h
1 parent 7072707 commit 0c10429

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/pybind11/numpy.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
#include <utility>
3030
#include <vector>
3131

32+
#if defined(PYBIND11_NUMPY_1_ONLY)
33+
# error "PYBIND11_NUMPY_1_ONLY is no longer supported (see PR #5595)."
34+
#endif
35+
3236
/* This will be true on all flat address space platforms and allows us to reduce the
3337
whole npy_intp / ssize_t / Py_intptr_t business down to just ssize_t for all size
3438
and dimension types (e.g. shape, strides, indexing), instead of inflicting this

0 commit comments

Comments
 (0)