mesa: Fix Cygwin build with llvm enabled.

On Cygwin locale_t in not available but 'llvm-config --cppflags' adds
the compiler flag -D_GNU_SOURCE to the build.
This commit is contained in:
Vinson Lee
2010-07-23 16:24:35 -07:00
parent 1874cb7e82
commit 658fc7539d

View File

@@ -756,7 +756,7 @@ _mesa_strdup( const char *s )
float
_mesa_strtof( const char *s, char **end )
{
#ifdef _GNU_SOURCE
#if defined(_GNU_SOURCE) && !defined(__CYGWIN__)
static locale_t loc = NULL;
if (!loc) {
loc = newlocale(LC_CTYPE_MASK, "C", NULL);