[ET Trac] [Einstein Toolkit] #875: Cactus should define 'restrict', with a value dependent on autoconf information

Einstein Toolkit trac-noreply at einsteintoolkit.org
Mon May 7 10:58:31 CDT 2012


#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
 }}}

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/875#comment:5>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list