Skip to content

Commit 9c177d2

Browse files
authored
Restore Android/ARMv7 build fix from #778
for #1811
1 parent 76a66ea commit 9c177d2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lapack-netlib/LAPACKE/include/lapacke_config.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@
3434
#ifndef _LAPACKE_CONFIG_H_
3535
#define _LAPACKE_CONFIG_H_
3636

37+
// For Android prior to API 21 (no <complex> include)
38+
#if defined(__ANDROID__)
39+
#if __ANDROID_API__ < 21
40+
#define LAPACK_COMPLEX_STRUCTURE
41+
#endif
42+
#endif
43+
3744
#ifdef __cplusplus
3845
#if defined(LAPACK_COMPLEX_CPP)
3946
#include <complex>

0 commit comments

Comments
 (0)