Skip to content

wrong protototype for LAPACK_lsame? #545

@stefanozampini

Description

@stefanozampini

Description
both MKL and BLIS define lsame as
lsame( const char* ca, const char* cb...)
while this code uses
same( char* ca, char* cb..

diff --git a/LAPACKE/include/lapack.h b/LAPACKE/include/lapack.h
index a70352acd..efc7068e7 100644
--- a/LAPACKE/include/lapack.h
+++ b/LAPACKE/include/lapack.h
@@ -115,7 +115,7 @@ typedef lapack_logical (*LAPACK_Z_SELECT2)
     ( const lapack_complex_double*, const lapack_complex_double* );
 
 #define LAPACK_lsame LAPACK_GLOBAL(lsame,LSAME)
-lapack_logical LAPACK_lsame( char* ca,  char* cb,
+lapack_logical LAPACK_lsame( const char* ca,  const char* cb,
                               lapack_int lca, lapack_int lcb );

Checklist

  • I've included a minimal example to reproduce the issue
  • I'd be willing to make a PR to solve this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions