blob: e1aa310c95738e2fffd6932648864810eae8960a [file] [log] [blame]
# Test for __inline keyword
dnl Copyright 2017-2019 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
AC_CACHE_CHECK([whether the compiler supports the __inline keyword],
[[typedef int foo_t;
static __inline foo_t foo (void) { return 0; }]],
[[return foo ();]])],
if test $gl_cv_c___inline = yes; then
[Define to 1 if the compiler supports the keyword '__inline'.])