From: Vinson Lee Date: Fri, 23 Jul 2010 23:24:35 +0000 (-0700) Subject: mesa: Fix Cygwin build with llvm enabled. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=658fc7539d6befaa48e69496097d383048af9173;p=mesa.git 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. --- diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 25080db40c4..c3993510967 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -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);