Commit c9cd990d authored by James Almer's avatar James Almer

Merge commit '3152058b'

* commit '3152058b':
  libavcodec: Don't use dllexport, only dllimport when building DLLs
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents c6f7eb86 3152058b
......@@ -4957,7 +4957,7 @@ case $target_os in
mingw32*|mingw64*)
target_os=mingw32
if enabled shared; then
# Cannot build both shared and static libs when using dllexport.
# Cannot build both shared and static libs when using dllimport.
disable static
fi
enabled shared && ! enabled small && check_cmd $windres --version && enable gnu_windres
......
......@@ -414,12 +414,8 @@ int ff_alloc_a53_sei(const AVFrame *frame, size_t prefix_len,
*/
int64_t ff_guess_coded_bitrate(AVCodecContext *avctx);
#if defined(_WIN32) && CONFIG_SHARED
#ifdef BUILDING_avcodec
# define av_export_avcodec __declspec(dllexport)
#else
#if defined(_WIN32) && CONFIG_SHARED && !defined(BUILDING_avcodec)
# define av_export_avcodec __declspec(dllimport)
#endif
#else
# define av_export_avcodec
#endif
......
......@@ -63,12 +63,8 @@
#endif
#endif
#if defined(_WIN32) && CONFIG_SHARED
#ifdef BUILDING_avutil
# define av_export_avutil __declspec(dllexport)
#else
#if defined(_WIN32) && CONFIG_SHARED && !defined(BUILDING_avutil)
# define av_export_avutil __declspec(dllimport)
#endif
#else
# define av_export_avutil
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment