Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/build/pkgs/cvxopt/patches/cvxopt.h.patch
8820 views
1
diff -ru src/src/C/cvxopt.h b/src/C/cvxopt.h
2
--- src/src/C/cvxopt.h 2013-04-22 08:44:28.000000000 +0200
3
+++ b/src/C/cvxopt.h 2013-05-14 17:00:12.402407091 +0200
4
@@ -28,8 +28,16 @@
5
/* ANSI99 complex is disabled during build of CHOLMOD */
6
7
#ifndef NO_ANSI99_COMPLEX
8
-#include "complex.h"
9
+#include <complex.h>
10
#define MAT_BUFZ(O) ((double complex *)((matrix *)O)->buffer)
11
+
12
+/* The <complex.h> header of Solaris 10 defines I in a way that GCC
13
+ * doesn't understand. Redefine I like in glibc. */
14
+#if defined(__sun__) && defined(__GNUC__)
15
+ #undef I
16
+ #define I (__extension__ 1.0iF)
17
+#endif
18
+
19
#endif
20
21
#ifndef __CVXOPT__
22
23