From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Wed, 29 Jan 2025 22:45:06 +0100
Subject: NumPy 2 workaround

Author: Dima Kogan <dkogan@debian.org>
Origin: upstream,
https://github.com/dkogan/mrcal/commit/0934dfe97099873f6b4415de23b3e784c745673c
---
 mrcal-pywrap.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mrcal-pywrap.c b/mrcal-pywrap.c
index e36cabe..a041912 100644
--- a/mrcal-pywrap.c
+++ b/mrcal-pywrap.c
@@ -12,6 +12,10 @@
 #include <Python.h>
 #include <structmember.h>
 #include <numpy/arrayobject.h>
+// Required for numpy 2. They now #include complex.h, so I is #defined to be the
+// complex I, which conflicts with my usage here
+#undef I
+
 #include <signal.h>
 #include <dogleg.h>
 #include <limits.h>
