summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander von Gluck <[email protected]>2012-01-22 12:42:38 -0600
committerBrian Paul <[email protected]>2012-01-24 11:00:42 -0700
commit873f3ae92e1d8a17ea228b38b4c20346d54ae045 (patch)
tree8f73c03ee242fc09a3a03deede77aa695a54f938
parent02a1f9f14d8c2c5d9f0a2592b4a52450c9e7ccfe (diff)
glsl: Don't use newlocale on Haiku
NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Brian Paul <[email protected]>
-rw-r--r--src/glsl/strtod.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/strtod.c b/src/glsl/strtod.c
index ff34591488c..a876e138b70 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);