clapack-3.2.1-fix_include_file.patch 689 B

1234567891011121314151617181920212223242526
  1. diff -urN clapack-3.2.1-CMAKE.old/INCLUDE/clapack.h clapack-3.2.1-CMAKE/INCLUDE/clapack.h
  2. --- clapack-3.2.1-CMAKE.old/INCLUDE/clapack.h 2011-04-30 11:39:51.000000000 +0200
  3. +++ clapack-3.2.1-CMAKE/INCLUDE/clapack.h 2011-04-30 11:40:39.000000000 +0200
  4. @@ -3,6 +3,12 @@
  5. #ifndef __CLAPACK_H
  6. #define __CLAPACK_H
  7. +#include <f2c.h>
  8. +
  9. +#ifdef __cplusplus
  10. +extern "C" {
  11. +#endif
  12. +
  13. /* Subroutine */ int caxpy_(integer *n, complex *ca, complex *cx, integer *
  14. incx, complex *cy, integer *incy);
  15. @@ -7250,5 +7256,8 @@
  16. integer ilaenv_(integer *ispec, char *name__, char *opts, integer *n1,
  17. integer *n2, integer *n3, integer *n4);
  18. +#ifdef __cplusplus
  19. +}
  20. +#endif
  21. #endif /* __CLAPACK_H */