diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-08-31 00:10:30 +0800 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-08-30 09:10:30 -0700 |
| commit | 49313b8bbab7baa12ffa1f2cbd6e95cef2c6c910 (patch) | |
| tree | e29ef4d098c9926444a99f06fa61af2019ab2e55 /ports/openblas/fix-redefinition-function.patch | |
| parent | fdbd3b5ee89c06b47d33e30a3bd31f55e8fb1a39 (diff) | |
| download | vcpkg-49313b8bbab7baa12ffa1f2cbd6e95cef2c6c910.tar.gz vcpkg-49313b8bbab7baa12ffa1f2cbd6e95cef2c6c910.zip | |
[openblas]Enable x86 build and fix usage errors. (#7888)
* [openblas]Enable x86 build.
* [openblas]Fix include openblas_config.h path.
* [openblas]
* [openblas]fix typo error.
Diffstat (limited to 'ports/openblas/fix-redefinition-function.patch')
| -rw-r--r-- | ports/openblas/fix-redefinition-function.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ports/openblas/fix-redefinition-function.patch b/ports/openblas/fix-redefinition-function.patch new file mode 100644 index 000000000..176a29ff3 --- /dev/null +++ b/ports/openblas/fix-redefinition-function.patch @@ -0,0 +1,28 @@ +diff --git a/openblas_config_template.h b/openblas_config_template.h +index 52dd49d..239219d 100644 +--- a/openblas_config_template.h ++++ b/openblas_config_template.h +@@ -64,6 +64,7 @@ typedef int blasint; + #ifndef __cplusplus + #include <complex.h> + #endif ++ #ifndef OPENBLAS_COMPLEX_STRUCT + typedef float _Complex openblas_complex_float; + typedef double _Complex openblas_complex_double; + typedef xdouble _Complex openblas_complex_xdouble; +@@ -76,7 +77,9 @@ typedef int blasint; + #define openblas_complex_double_imag(z) (cimag(z)) + #define openblas_complex_xdouble_real(z) (creal(z)) + #define openblas_complex_xdouble_imag(z) (cimag(z)) ++ #endif + #else ++ #ifndef OPENBLAS_COMPLEX_STRUCT + #define OPENBLAS_COMPLEX_STRUCT + typedef struct { float real, imag; } openblas_complex_float; + typedef struct { double real, imag; } openblas_complex_double; +@@ -90,4 +93,5 @@ typedef int blasint; + #define openblas_complex_double_imag(z) ((z).imag) + #define openblas_complex_xdouble_real(z) ((z).real) + #define openblas_complex_xdouble_imag(z) ((z).imag) ++ #endif + #endif |
