glibc/misc/sys
Joseph Myers 383e87c96b Fix non-__GNUC__ definitions of __inline and __restrict (bug 17721).
Bug 17721 reports that the non-__GNUC__ definitions of __inline and
__restrict are suboptimal, in that they are defined to empty when they
could be defined to inline and restrict for appropriate language
versions.  This patch makes those fixes.

Tested for x86_64 (however, I have not done any testing with an actual
non-__GNUC__ compiler and it's likely such compilers may have other
problems with glibc headers).

	[BZ #17721]
	* misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
	&& __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
	[!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
	199901L] (__restrict): Define to restrict.
2018-02-06 21:48:35 +00:00
..
auxv.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
cdefs.h Fix non-__GNUC__ definitions of __inline and __restrict (bug 17721). 2018-02-06 21:48:35 +00:00
dir.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
file.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ioctl.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mman.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
param.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
queue.h [BZ #5779] 2008-03-05 05:50:39 +00:00
select.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
syslog.h Combine __USE_BSD and __USE_SVID into __USE_MISC. 2014-02-12 23:41:01 +00:00
sysmacros.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
uio.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ustat.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
xattr.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00