[Mesa-dev] [PATCH 5/5] glsl: Don't use newlocale on Haiku
Alexander von Gluck
kallisti5 at unixzen.com
Sun Jan 22 10:42:38 PST 2012
---
src/glsl/strtod.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/glsl/strtod.c b/src/glsl/strtod.c
index ff34591..a876e13 100644
--- a/src/glsl/strtod.c
+++ b/src/glsl/strtod.c
@@ -44,7 +44,8 @@
double
glsl_strtod(const char *s, char **end)
{
-#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
+#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
&& \
+ !defined(__HAIKU__)
static locale_t loc = NULL;
if (!loc) {
loc = newlocale(LC_CTYPE_MASK, "C", NULL);
--
1.7.5.4
More information about the mesa-dev
mailing list