util: initialize locale_t with a static object
authorChia-I Wu <olvaffe@gmail.com>
Wed, 20 Aug 2014 06:40:24 +0000 (14:40 +0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Oct 2014 09:26:19 +0000 (02:26 -0700)
commit61c3d493882440d4d8d01a12b7b83fce63d6a7c7
tree40dade6b8758009b9e982231bcebcbfb85d43203
parentb039dbfffd8eedef53a5ff9ae6b0ae09e6844d9c
util: initialize locale_t with a static object

_mesa_strtod and _mesa_strtof may be called from multiple threads.  They need
to be thread-safe.

v2: platform checks are now done in configure.ac

Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/strtod.cpp