summaryrefslogtreecommitdiffstats
path: root/Tests/FindLAPACK/Test/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FindLAPACK/Test/main.c')
-rw-r--r--Tests/FindLAPACK/Test/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/FindLAPACK/Test/main.c b/Tests/FindLAPACK/Test/main.c
index 04eedea..dd33fb3 100644
--- a/Tests/FindLAPACK/Test/main.c
+++ b/Tests/FindLAPACK/Test/main.c
@@ -1,7 +1,14 @@
#include <assert.h>
+#include <stdint.h>
#include <string.h>
-typedef int blas_int;
+#if BLA_SIZEOF_INTEGER == 4
+typedef int32_t blas_int;
+#elif BLA_SIZEOF_INTEGER == 8
+typedef int64_t blas_int;
+#else
+# error BLA_SIZEOF_INTEGER is not declared!
+#endif
// declare what parts of the lapack C-API we need
void dgesv_(blas_int*, blas_int*, double*, blas_int*, blas_int*, double*,