[flac-dev] PATCH for MSVC++ 2005 Express
lvqcl
lvqcl.mail at gmail.com
Tue Aug 20 09:44:36 PDT 2013
Martijn van Beurden <mvanb1 at gmail.com> wrote:
> As the changes necessary to keep everything working with 2005 are
> minimal (AFAIK only the third part of the patch lvqcl submitted is MSVC
> 2005 specific)
Yes, exactly: compat.h redefines restrict as __restrict, but only for VS 2005 and older. Unfortunately this also changes __declspec(restrict) to __declspec(__restrict) which results in compilation errors.
A possible solution is to ensure that compat.h is always the last (there are no other header files after it). But it's much simpler to remove this redefinition.
More information about the flac-dev
mailing list