<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Fix compilation with Android's bionic libc"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70492#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Fix compilation with Android's bionic libc"
href="https://bugs.freedesktop.org/show_bug.cgi?id=70492">bug 70492</a>
from <span class="vcard"><a class="email" href="mailto:b.harrington@samsung.com" title="Bryce Harrington <b.harrington@samsung.com>"> <span class="fn">Bryce Harrington</span></a>
</span></b>
<pre>This could be done a bit more concisely I think:
+const char *
+cairo_get_locale_decimal_point (void)
+{
+#ifdef __BIONIC__
+ return '.';
+#else
+ struct lconv *locale_data;
+
+ locale_data = localeconv ();
+ return locale_data->decimal_point;
+#endif
+}
Also the #include <locale.h> should be wrapped in an #ifndef __BIONIC__ to
avoid problems, and since it won't be needed there.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>