summaryrefslogtreecommitdiff
path: root/bits
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-02-06 21:48:35 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-02-06 21:48:35 +0000
commit383e87c96b9eee3b4b2d78dbeeaa8e2c0db35feb (patch)
tree3326eeeb36f36f21acac944220678b1286253656 /bits
parentd92c2759976600decd8353730a5b5ce30c2758d8 (diff)
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.
Diffstat (limited to 'bits')
0 files changed, 0 insertions, 0 deletions