diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-04-04 23:10:05 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-04-04 23:10:05 +0000 |
commit | 9658948f65e10c7f64714d8578fa68bb8ee8fbfd (patch) | |
tree | a364b76ea32b6e35584feba27e13d07c138dd7fa /lib/make/aclocal.m4 | |
parent | c9747127ac89317c41951220e61bc3aa057dc64d (diff) |
Check for the "restrict" qualifier more thoroughly. Certain compilers
(old versions of g++) don't support restrict in arrays which are
structure members.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4282 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/aclocal.m4')
-rw-r--r-- | lib/make/aclocal.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/make/aclocal.m4 b/lib/make/aclocal.m4 index 39035a1c..2b8fb597 100644 --- a/lib/make/aclocal.m4 +++ b/lib/make/aclocal.m4 @@ -286,6 +286,7 @@ for ac_kw in restrict __restrict__ __restrict; do AC_TRY_COMPILE(, [ double * $ac_kw foo; void bar (void * $ac_kw arr[]); +struct tux { char * $ac_kw arr[3]; }; ], [cctk_cv_c_restrict=$ac_kw; break]) done ]) @@ -305,6 +306,7 @@ for ac_kw in restrict __restrict__ __restrict; do AC_TRY_COMPILE(, [ double * $ac_kw foo; void bar (void * $ac_kw arr[]); +struct tux { char * $ac_kw arr[3]; }; ], [cctk_cv_cxx_restrict=$ac_kw; break]) done AC_LANG_RESTORE |