0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/mruby/mrbgems-mruby-cmath-src-cmath.c.patch
Tee KOBAYASHI ead7574d8e mruby: Fix missing clog declaration
%ci:no-build
2023-04-12 01:19:20 +09:00

16 lines
430 B
Diff

https://github.com/termux/termux-packages/issues/15852
--- a/mrbgems/mruby-cmath/src/cmath.c
+++ b/mrbgems/mruby-cmath/src/cmath.c
@@ -17,6 +17,10 @@
#include <complex.h>
+#if defined __ANDROID__ && __ANDROID_API__ < 26
+double complex clog(double complex);
+#endif
+
mrb_value mrb_complex_new(mrb_state *mrb, mrb_float real, mrb_float imag);
void mrb_complex_get(mrb_state *mrb, mrb_value cpx, mrb_float*, mrb_float*);