[FFmpeg-devel] Fwd: [PATCH] Change all uses of restrict to use av_restrict instead.

Michael Niedermayer michaelni at gmx.at
Sun Jun 17 00:48:51 CEST 2012

On Sat, Jun 16, 2012 at 05:57:56PM -0400, Ronald S. Bultje wrote:
> Hi,
> interested in the below patch? It's part of a port to MSVC which I
> have working locally.
> Ronald
> ---------- Forwarded message ----------
> From: Ronald S. Bultje <rsbultje at gmail.com>
> Date: Fri, Jun 15, 2012 at 6:52 PM
> Subject: [PATCH] Change all uses of restrict to use av_restrict instead.
> To: libav-devel at libav.org
> Cc: "Ronald S. Bultje" <rsbultje at gmail.com>
> From: "Ronald S. Bultje" <rsbultje at gmail.com>
> Defining restrict results - for some compilers - in changing other
> uses of the restrict keyword also, e.g. __declspec(restrict) gets
> changed to __declspec(__restrict) on MSVC. This causes compilation
> failures. Therefore, using a private namespace macro instead is
> more reliable and robust.



Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120617/c41cb287/attachment.asc>

More information about the ffmpeg-devel mailing list