X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fgnulib-common.m4;h=75da53db07497f559d38863b16fac648a97ff01c;hb=6da2fb7a5a1e8a32ccd2f735834713a3bc8c4275;hp=c8fda2033045d38975415f240bd9a72a14a2c949;hpb=3eea013a1a635025247cef82fb6e245be59515cb;p=gnulib.git diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4 index c8fda2033..75da53db0 100644 --- a/m4/gnulib-common.m4 +++ b/m4/gnulib-common.m4 @@ -70,13 +70,13 @@ AC_DEFUN([AC_C_RESTRICT], for ac_kw in __restrict __restrict__ _Restrict restrict; do AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[typedef int * int_ptr; - int foo (int_ptr $ac_kw ip) { - return ip[0]; + int foo (int_ptr $ac_kw ip) { + return ip[0]; }]], [[int s[1]; - int * $ac_kw t = s; - t[0] = 0; - return foo(t)]])], + int * $ac_kw t = s; + t[0] = 0; + return foo(t)]])], [ac_cv_c_restrict=$ac_kw]) test "$ac_cv_c_restrict" != no && break done