Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys
On Tue, Feb 21, 2012 at 10:53:08 +0000, Martin Husemann wrote:
> Module Name: src
> Committed By: martin
> Date: Tue Feb 21 10:53:08 UTC 2012
>
> Modified Files:
> src/sys/sys: cdefs.h
>
> Log Message:
> There are some places where C99 allows a restrict modifier (and posix
> demands it), but C++ does not allow it. So add a C only version of
> __restrict, which expands to nothing if compiling C++.
> See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49347 for a discussion.
That feels bogus. What's wrong with with replacing [restrict] with
equivalent *restrict syntax that is also valid for C++?
-uwe
Home |
Main Index |
Thread Index |
Old Index