glsl: Don't use newlocale on Haiku
authorAlexander von Gluck <kallisti5@unixzen.com>
Sun, 22 Jan 2012 18:42:38 +0000 (12:42 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 18:00:42 +0000 (11:00 -0700)
NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/glsl/strtod.c

index ff34591488cd8785aa70cd8253b2acd249a3c0f7..a876e138b70460a5bec2f8082dd06df0cac006c8 100644 (file)
@@ -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);