Code uses _GNU_SOURCE to determine locale facilities are available
Submitted by Bryan Henderson
Assigned to mes..@..op.org
Description
In two places, the code use #if defined(_GNU_SOURCE) to determine whether certain locale facilities are present in the environment.
I suspect the code wants to test whether the C library is the GNU C library, which is GLIBC. _GNU_SOURCE is something the source file sets to tell the GNU C Library header files that the code is designed for GNU extensions in that library.
Incidentally, just having GNU C Library isn't enough to know these facilities are available. It takes a recent version of it. For example, I found GNU C Library Version 2.2.2 does not have them.
The two places are:
src/glsl/strtod.c src/mesa/main/imports.c
Version: 7.9