diff options
author | Zack Weinberg <zackw@panix.com> | 2016-07-07 17:10:02 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2016-07-08 13:57:57 -0300 |
commit | 58dc3371865ef8e331de33423c57af855f6b6c45 (patch) | |
tree | 5e8e53483822a8ffe171d8572091b765ca85de03 /iconvdata/ibm1025.h | |
parent | c304e8024e39c68fdbaa2681855f1e0af0a48659 (diff) | |
download | glibc-azanella/deprecate-makedev.tar.gz |
Deprecate inclusion of <sys/sysmacros.h> by <sys/types.h>azanella/deprecate-makedev
The macros defined by <sys/sysmacros.h> are not part of POSIX nor XSI,
and their names have been found frequently to collide with user code;
see for instance glibc bug 19239 and Red Hat bug 130601. <stdlib.h>
includes <sys/types.h> under _GNU_SOURCE, and C++ code presently cannot
avoid being compiled under _GNU_SOURCE, exacerbating the problem.
* NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
* misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
define major, minor, and makedev to issue deprecation warnings on use.
If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
previously-activated deprecation warnings for these macros and prevent
subsequent inclusions of this header from having any effect.
* posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
including <sys/sysmacros.h>, and undefine it again afterward.
Diffstat (limited to 'iconvdata/ibm1025.h')
0 files changed, 0 insertions, 0 deletions