patch-src_glsl_strtod_c 670 B

1234567891011121314151617181920212223242526272829303132
  1. --- Mesa-8.0.5.orig/src/glsl/strtod.c 2012-10-24 21:03:59.000000000 +0200
  2. +++ Mesa-8.0.5/src/glsl/strtod.c 2013-09-25 17:34:06.000000000 +0200
  3. @@ -25,14 +25,6 @@
  4. #include <stdlib.h>
  5. -
  6. -#ifdef _GNU_SOURCE
  7. -#include <locale.h>
  8. -#ifdef __APPLE__
  9. -#include <xlocale.h>
  10. -#endif
  11. -#endif
  12. -
  13. #include "strtod.h"
  14. @@ -44,14 +36,5 @@
  15. double
  16. glsl_strtod(const char *s, char **end)
  17. {
  18. -#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \
  19. - !defined(__HAIKU__)
  20. - static locale_t loc = NULL;
  21. - if (!loc) {
  22. - loc = newlocale(LC_CTYPE_MASK, "C", NULL);
  23. - }
  24. - return strtod_l(s, end, loc);
  25. -#else
  26. return strtod(s, end);
  27. -#endif
  28. }