OSDN Git Service

util: improve compiler guard
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 31 Aug 2017 16:55:56 +0000 (16:55 +0000)
committerAndres Gomez <agomez@igalia.com>
Wed, 6 Sep 2017 15:05:10 +0000 (18:05 +0300)
commit80dcb7d4fdf86c0e90b53bfe60afb0106bfd703d
tree7b2625721b2088ba5a6d61ef73a92196a05f52d7
parenteb5eb5b26d3dffdbfac9c12a9113a16859a7f0c0
util: improve compiler guard

Glibc 2.26 has dropped xlocale.h, but the functions needed (strtod_l()
and strdof_l()) can be found in stdlib.h.
Improve the detection method to allow newer builds to still make use of
the locale-setting.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102454
Cc: Laurent Carlier <lordheavym@gmail.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Laurent Carlier <lordheavym@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
(cherry picked from commit 49b428470e28ae6ab22083e43fa41abf622f3b0d)
configure.ac
scons/gallium.py
src/util/strtod.c