Skip to content

Commit 817fe98

Browse files
authored
Merge pull request #1998 from martin-frbg/issue1992
Include complex rather than complex.h in C++ contexts
2 parents 729e925 + f4b82d7 commit 817fe98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lapack-netlib/LAPACKE/include/lapacke.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ lapack_complex_float lapack_make_complex_float( float re, float im );
8686

8787
/* Complex type (double precision) */
8888
#ifndef lapack_complex_double
89+
#ifndef __cplusplus
8990
#include <complex.h>
91+
#else
92+
#include <complex>
93+
#endif
9094
#define lapack_complex_double double _Complex
9195
#endif
9296

0 commit comments

Comments
 (0)