Skip to content

Commit

Permalink
mesa: Fix Android build by #ifdef'ing out locale support
Browse files Browse the repository at this point in the history
Bionic does not support locales. This commit #ifdef's out the locale usage
in _mesa_strtof().

Signed-off-by: Chad Versace <chad@chad-versace.us>
  • Loading branch information
versalinyaa committed Aug 16, 2011
1 parent eb0ff1a commit bd064a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mesa/main/imports.c
Expand Up @@ -753,7 +753,8 @@ _mesa_strdup( const char *s )
float
_mesa_strtof( const char *s, char **end )
{
#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \
!defined(ANDROID)
static locale_t loc = NULL;
if (!loc) {
loc = newlocale(LC_CTYPE_MASK, "C", NULL);
Expand Down

0 comments on commit bd064a4

Please sign in to comment.