blob: 11a029e47b9d9df6932f4405a3caa05e47ca38e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
From 83364dec2aa93d1a416c06b97de98c11d997bd37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian.droege@collabora.co.uk>
Date: Wed, 22 Aug 2012 15:29:52 +0200
Subject: [PATCH 2/2] Port to Android
---
src/fcxml.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/fcxml.c b/src/fcxml.c
index 91d166f..7776fa6 100644
--- a/src/fcxml.c
+++ b/src/fcxml.c
@@ -1314,7 +1314,9 @@ FcParseInt (FcConfigParse *parse)
static double
FcStrtod (char *s, char **end)
{
+#ifndef __BIONIC__
struct lconv *locale_data;
+#endif
char *dot;
double v;
@@ -1322,6 +1324,7 @@ FcStrtod (char *s, char **end)
* Have to swap the decimal point to match the current locale
* if that locale doesn't use 0x2e
*/
+#ifndef __BIONIC__
if ((dot = strchr (s, 0x2e)) &&
(locale_data = localeconv ()) &&
(locale_data->decimal_point[0] != 0x2e ||
@@ -1358,6 +1361,7 @@ FcStrtod (char *s, char **end)
}
}
else
+#endif
v = strtod (s, end);
return v;
}
--
1.9.0
|