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

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/imports.c

index bbc6ac6e240699ca5001404f8f8fa0ca868e42cc..82713a13b1767222d832517454664d89ed2f9b67 100644 (file)
@@ -764,7 +764,7 @@ float
 _mesa_strtof( const char *s, char **end )
 {
 #if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \
-    !defined(ANDROID)
+   !defined(ANDROID) && !defined(__HAIKU__)
    static locale_t loc = NULL;
    if (!loc) {
       loc = newlocale(LC_CTYPE_MASK, "C", NULL);