Skip to content

Commit 82014d9

Browse files
committed
Added LAPACK_IFMT in lapack.h for 32-bit integer builds. Replaced int with int32_t as default type.
1 parent 6030bc4 commit 82014d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

LAPACKE/include/lapack.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include <stdlib.h>
1414
#include <stdarg.h>
15+
#include <inttypes.h>
1516

1617
/* It seems all current Fortran compilers put strlen at end.
1718
* Some historical compilers put strlen after the str argument
@@ -80,9 +81,11 @@ extern "C" {
8081

8182
/*----------------------------------------------------------------------------*/
8283
#ifndef lapack_int
83-
#define lapack_int int
84+
#define lapack_int int32_t
8485
#endif
8586

87+
#define LAPACK_IFMT PRId32
88+
8689
#ifndef lapack_logical
8790
#define lapack_logical lapack_int
8891
#endif

0 commit comments

Comments
 (0)