1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Fix FTBFS against suitesparse 7
In SuiteSparse 7.1.0, CXSparse now unconditionally enables the complex number
support. In particular, cs.h now unconditonally includes <complex.h>.
But "I" is a preprocessor macro when <complex.h> is included, and this
conflicts with names used inside siconos and boost. So undefine that macro.
Author: Sébastien Villemot <sebastien@debian.org>
Bug-Debian: https://bugs.debian.org/1041225
Forwarded: no
Last-Update: 2023-07-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/numerics/src/tools/CSparseMatrix_internal.h
+++ b/numerics/src/tools/CSparseMatrix_internal.h
@@ -45,6 +45,7 @@
#define NCOMPLEX
#include "cs.h"
+#undef I
#include "CSparseMatrix.h"
|