patch-src_mesa_main_imports_c 649 B

1234567891011121314151617
  1. --- Mesa-7.8.2.orig/src/mesa/main/imports.c 2010-06-15 19:43:43.000000000 +0200
  2. +++ Mesa-7.8.2/src/mesa/main/imports.c 2010-12-03 01:16:56.000000000 +0100
  3. @@ -800,13 +800,7 @@ _mesa_strdup( const char *s )
  4. float
  5. _mesa_strtof( const char *s, char **end )
  6. {
  7. -#ifdef _GNU_SOURCE
  8. - static locale_t loc = NULL;
  9. - if (!loc) {
  10. - loc = newlocale(LC_CTYPE_MASK, "C", NULL);
  11. - }
  12. - return strtof_l(s, end, loc);
  13. -#elif defined(_ISOC99_SOURCE) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600)
  14. +#if defined(_ISOC99_SOURCE) || (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 600)
  15. return strtof(s, end);
  16. #else
  17. return (float)strtod(s, end);