aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-16 00:14:17 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2019-08-16 00:14:17 -0700
commit16a3e8ddb9fa6730288a586db34d768d31bd3014 (patch)
treea27da316ef2d9d9edf39128d09b62ba783611953
parent8b6e6bf04f6f62a576ae818758d6d5a58ca69a5d (diff)
downloadnasm-16a3e8ddb9fa6730288a586db34d768d31bd3014.tar.gz
nasm-16a3e8ddb9fa6730288a586db34d768d31bd3014.tar.xz
nasm-16a3e8ddb9fa6730288a586db34d768d31bd3014.zip
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>
-rw-r--r--autoconf/m4/pa_check_bad_stdc_inline.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/autoconf/m4/pa_check_bad_stdc_inline.m4 b/autoconf/m4/pa_check_bad_stdc_inline.m4
index 267a8ce9..3fbc53ab 100644
--- a/autoconf/m4/pa_check_bad_stdc_inline.m4
+++ b/autoconf/m4/pa_check_bad_stdc_inline.m4
@@ -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