File: suitesparse7.patch

package info (click to toggle)
siconos 4.4.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,600 kB
  • sloc: cpp: 160,976; ansic: 129,998; fortran: 33,051; python: 20,958; xml: 1,244; sh: 385; makefile: 318
file content (21 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (2)
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"