Re: [FFmpeg-devel] [PATCH] libavcodec/tiff: Fix static linking of lzma with msvc.

2014-11-22 Thread Michael Niedermayer
On Sun, Nov 23, 2014 at 05:25:25AM +1100, Matt Oliver wrote: > This fixes an error when using static lzma libs with msvc compiler. Without > it the lzma.h header defaults to forcing dll (shared) linkage which breaks > when using static libs. The fix requires adding a simple define before the > head

[FFmpeg-devel] [PATCH] libavcodec/tiff: Fix static linking of lzma with msvc.

2014-11-22 Thread Matt Oliver
This fixes an error when using static lzma libs with msvc compiler. Without it the lzma.h header defaults to forcing dll (shared) linkage which breaks when using static libs. The fix requires adding a simple define before the header is included that only affects lzma.h on win32 and only with msvc/i