fix second instance of complex.h for c++ as well
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Tue, 5 Feb 2019 18:29:33 +0000 (19:29 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Feb 2019 18:29:33 +0000 (19:29 +0100)
lapack-netlib/LAPACKE/include/lapacke.h

index 6ded78c..c5ea465 100644 (file)
 
 /* Complex type (single precision) */
 #ifndef lapack_complex_float
+#ifndef __cplusplus
 #include <complex.h>
+#else
+#include <complex>
+#endif
 #define lapack_complex_float    float _Complex
 #endif
 
@@ -86,7 +90,11 @@ lapack_complex_float lapack_make_complex_float( float re, float im );
 
 /* Complex type (double precision) */
 #ifndef lapack_complex_double
+#ifndef __cplusplus
 #include <complex.h>
+#else
+#include <complex>
+#endif
 #define lapack_complex_double   double _Complex
 #endif