patch-src_mesa_main_imports_c 649 B

1234567891011121314151617
  1. --- Mesa-7.8.1.orig/src/mesa/main/imports.c 2010-04-05 01:46:26.000000000 +0200
  2. +++ Mesa-7.8.1/src/mesa/main/imports.c 2010-04-19 21:22:52.000000000 +0200
  3. @@ -799,13 +799,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);