preload-hacks: Some patches to make it work.
[termux-packages] / packages / poppler / gstrtod.cc.patch
CommitLineData
59f0d218
FF
1diff -u -r ../poppler-0.26.2/goo/gstrtod.cc ./goo/gstrtod.cc
2--- ../poppler-0.26.2/goo/gstrtod.cc 2014-04-26 17:37:22.000000000 +0200
3+++ ./goo/gstrtod.cc 2014-06-26 08:44:42.000000000 +0200
4@@ -41,7 +41,9 @@
5 {
6 char *fail_pos;
7 double val;
8+#ifndef __ANDROID__
9 struct lconv *locale_data;
10+#endif
11 const char *decimal_point;
12 int decimal_point_len;
13 const char *p, *decimal_point_pos;
14@@ -50,8 +52,12 @@
15
16 fail_pos = NULL;
17
18+#ifdef __ANDROID__
19+ decimal_point = ".";
20+#else
21 locale_data = localeconv ();
22 decimal_point = locale_data->decimal_point;
23+#endif
24 decimal_point_len = strlen (decimal_point);
25
26 decimal_point_pos = NULL;