[Mesa-dev] [PATCH mesa] util: improve compiler guard

Rob Herring robh at kernel.org
Thu Aug 31 18:28:25 UTC 2017


On Thu, Aug 31, 2017 at 11:54 AM, Eric Engestrom
<eric.engestrom at imgtec.com> wrote:
> 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 at gmail.com>
> Cc: Emil Velikov <emil.l.velikov at gmail.com>
> Cc: Rob Herring <robh at kernel.org>
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
>
> Rob, any idea if android needs locale-setting? Emil suggested it might
> always use "C" anyway.

Looking at bionic, it just throws away the locale parameter. So it
doesn't really matter which code path mesa uses.

Rob


More information about the mesa-dev mailing list