aboutsummaryrefslogtreecommitdiff
path: root/ports/openblas/fix-redefinition-function.patch
diff options
context:
space:
mode:
authorzi-m <zi.m.github.com@gmail.com>2019-09-07 23:08:23 +0200
committerzi-m <zi.m.github.com@gmail.com>2019-09-07 23:08:23 +0200
commit108faffff4c995bc36c08695f72c14ae0f21163c (patch)
tree88a01a6076f142e4ad1b6002f4c7dc3730aa50ca /ports/openblas/fix-redefinition-function.patch
parent7fd21c5d827c2d77b21270646c2fe53704245747 (diff)
parent4cffadc18891aa6cc5a512cf500ad468c54cd3d0 (diff)
downloadvcpkg-108faffff4c995bc36c08695f72c14ae0f21163c.tar.gz
vcpkg-108faffff4c995bc36c08695f72c14ae0f21163c.zip
Merge remote-tracking branch 'upstream/master' into wxchartdir
Diffstat (limited to 'ports/openblas/fix-redefinition-function.patch')
-rw-r--r--ports/openblas/fix-redefinition-function.patch28
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