Skip to content

Commit 1391fc4

Browse files
authored
fix second instance of complex.h for c++ as well
1 parent 42df9ef commit 1391fc4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lapack-netlib/LAPACKE/include/lapacke.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@
7070

7171
/* Complex type (single precision) */
7272
#ifndef lapack_complex_float
73+
#ifndef __cplusplus
7374
#include <complex.h>
75+
#else
76+
#include <complex>
77+
#endif
7478
#define lapack_complex_float float _Complex
7579
#endif
7680

@@ -86,7 +90,11 @@ lapack_complex_float lapack_make_complex_float( float re, float im );
8690

8791
/* Complex type (double precision) */
8892
#ifndef lapack_complex_double
93+
#ifndef __cplusplus
8994
#include <complex.h>
95+
#else
96+
#include <complex>
97+
#endif
9098
#define lapack_complex_double double _Complex
9199
#endif
92100

0 commit comments

Comments
 (0)