autoconf: update check for gcc inlines

Old versions of gcc didn't define either __GNUC_STDC_INLINE__ or
__GNUC_GNU_INLINE__, but imply the latter.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2019-08-16 00:14:17 -07:00
parent 8b6e6bf04f
commit 16a3e8ddb9

View File

@ -10,7 +10,7 @@ AC_DEFUN([PA_CHECK_BAD_STDC_INLINE],
AC_INCLUDES_DEFAULT
/* Don't mistake GNU inlines for c99 */
#ifdef __GNUC_GNU_INLINE__
#if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
# error "Using gnu inline standard"
#endif