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@lists.freedesktop.org
        ReportedBy: bry...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to