This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17399] New: glibc headers should be cleaned up to depend only on _LIBC, _LIBC_TEST etc.


https://sourceware.org/bugzilla/show_bug.cgi?id=17399

            Bug ID: 17399
           Summary: glibc headers should be cleaned up to depend only on
                    _LIBC, _LIBC_TEST etc.
           Product: glibc
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: will.newton at gmail dot com
                CC: drepper.fsp at gmail dot com

glibc headers should only depend on a small number of defines to enable
internal behaviour, for example _LIBC and _LIBC_TEST, rather than depending on
internal include guard symbols or similar, for example in:

sysdeps/powerpc/bits/hwcap.h:

#if !defined(_SYS_AUXV_H) && !defined(_SYSDEPS_SYSDEP_H)
# error "Never include <bits/hwcap.h> directly; use <sys/auxv.h> instead."
#endif

sysdep.h is an internal header in this case.

This issue was discussed here:

https://sourceware.org/ml/libc-alpha/2014-09/msg00405.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]