termux-packages/packages/libvbisam/libvbisam-isdecimal.c.patch
Tee KOBAYASHI e87cd20082 libvbisam: Fix bugs around ecvt
`ecvt` was used undeclared in `libvbisam/isdecimal.c`.

`__set_errno` was undefined.
2021-12-28 14:51:15 +01:00

13 lines
267 B
Diff

--- a/libvbisam/isdecimal.c
+++ b/libvbisam/isdecimal.c
@@ -134,6 +134,9 @@
int decpt;
int sign;
+#ifdef __ANDROID__
+ char *ecvt(double, int, int *, int *);
+#endif
str = (unsigned char *)ecvt (dbl, ndigits, &decpt, &sign);
dp->dec_pos = sign ? 0 : 1;