[Mesa-dev] [Bug 33447] New: Code uses _GNU_SOURCE to determine locale facilities are available

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 24 18:57:19 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=33447

           Summary: Code uses _GNU_SOURCE to determine locale facilities
                    are available
           Product: Mesa
           Version: 7.9
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: bryanh at giraffe-data.com


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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list