Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] PGI 8.0-4 doesn't like ompi/mca/op/op.h
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-03-16 16:44:15


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