0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/flang/0002-remove-some-macros-that-breaks-building.patch
2022-09-21 18:28:57 +08:00

23 lines
466 B
Diff

diff -uNr a/flang/runtime/complex-reduction.c b/flang/runtime/complex-reduction.c
--- a/flang/runtime/complex-reduction.c
+++ b/flang/runtime/complex-reduction.c
@@ -10,6 +10,18 @@
#include "complex-reduction.h"
#include <float.h>
+#ifdef __ANDROID__
+#ifdef CMPLXF
+#undef CMPLXF
+#endif // CMPLXF
+#ifdef CMPLX
+#undef CMPLX
+#endif // CMPLX
+#ifdef CMPLXL
+#undef CMPLXL
+#endif // CMPLXL
+#endif // __ANDROID__
+
struct CppComplexFloat {
float r, i;
};