MINGW-packages/mingw-w64-python-numba/001-fix-build-with-numpy-2.0.1.patch
مهدي شينون (Mehdi Chinoune) 7fbc009246 python-numba: fix build with numpy 2.0.1 (3)
2024-08-01 22:23:34 +01:00

13 lines
286 B
Diff

--- a/numba/_helperlib.c
+++ b/numba/_helperlib.c
@@ -25,6 +25,9 @@
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/ndarrayobject.h>
#include <numpy/arrayscalars.h>
+#if !defined(I) && !defined(_MSC_VER)
+#define I _Complex_I
+#endif
#include "_arraystruct.h"