George and I talked more off-list / phone and he convinced me that
it's ok to do this in a top-level header file:
#if defined(c_plusplus) || defined(__cplusplus)
#undef restrict
#define restrict
#endif
I'll post to the Autoconf list about this soon.
On Mar 16, 2009, at 4:43 AM, Samuel Sarholz wrote:
> Hi,
>
> I am pretty sure that C++ has no restrict keyword (only C99), so IMHO
> it's not the compilers fault is not compiling.
> You probably want to turn restricts off for C++ by default, unless you
> know the compiler supports it.
>
> best regards,
> Samuel
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
--
Jeff Squyres
Cisco Systems
|