#875: Cactus should define 'restrict', with a value dependent on autoconf information --------------------------+------------------------------------------------- Reporter: knarf | Owner: Type: enhancement | Status: review Priority: minor | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: --------------------------+------------------------------------------------- Changes (by eschnett):
* status: new => review
Comment:
I propose this patch:
{{{ Index: cctk_Config.h.in =================================================================== --- cctk_Config.h.in (revision 4811) +++ cctk_Config.h.in (working copy) @@ -381,14 +381,10 @@ /* Some C++ compilers recognise the restrict keyword */ #undef HAVE_CCTK_CXX_RESTRICT #undef CCTK_CXX_RESTRICT - -/* Since this is non-standard leave commented out for the moment */ -#if 0 /* Define to empty if the keyword does not work. */ #ifdef CCTK_CXX_RESTRICT # define restrict CCTK_CXX_RESTRICT #endif -#endif
/* Allow the use of CCTK_RESTRICT as a qualifier always. */ #ifdef CCTK_CXX_RESTRICT }}}