bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_C_RESTRICT and C/C++


From: Bruno Haible
Subject: Re: AC_C_RESTRICT and C/C++
Date: Mon, 22 Oct 2007 12:45:53 +0200
User-agent: KMail/1.5.4

Paul Eggert wrote:
> Would it suffice to append this to config.h?  I don't have easy access
> to Sun C 5.0 any more (it's pretty old).

The same issue also holds with the Sun Studio 11 compiler
(in /opt/SUNWspro/SunStudio11/SUNWspro/bin).

> /* Work around a bug in Sun C++: it does not support _Restrict, even
>    though the corresponding Sun C compiler does.  Perhaps some future
>    version of Sun C++ will work with _Restrict; if so, it'll probably
>    define __RESTRICT, just as Sun C does.  */
> #if defined __SUNPRO_CC && !defined __RESTRICT
> # define _Restrict
> #endif

Yes, this works around the issue. Thanks!

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]