diff options
author | James Almer <jamrial@gmail.com> | 2017-11-11 16:32:09 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-11-11 17:29:16 +0300 |
commit | 87865bf6c7001e6fd8c536a247f71a9a426c3bd0 (patch) | |
tree | 1a97298933e784025f282c21cbd15b3ce2a84711 /libavcodec/internal.h | |
parent | f87ad3a058bfee786e942106c5c3450c02a66d48 (diff) | |
parent | abf1c058d1bd0ed1b820ea5e501a4484756f00b0 (diff) |
Merge commit 'abf1c058d1bd0ed1b820ea5e501a4484756f00b0'
* commit 'abf1c058d1bd0ed1b820ea5e501a4484756f00b0':
msvc: Properly specify dllexport for data symbols shared across dll boundaries
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 948d5461c1..522032b108 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -414,4 +414,14 @@ int ff_alloc_a53_sei(const AVFrame *frame, size_t prefix_len, */ int64_t ff_guess_coded_bitrate(AVCodecContext *avctx); +#if defined(_MSC_VER) && CONFIG_SHARED +#ifdef BUILDING_avcodec +# define av_export_avcodec __declspec(dllexport) +#else +# define av_export_avcodec __declspec(dllimport) +#endif +#else +# define av_export_avcodec +#endif + #endif /* AVCODEC_INTERNAL_H */ |