summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--libavcodec/internal.h6
2 files changed, 2 insertions, 6 deletions
diff --git a/configure b/configure
index fcffbce..7f320fe 100755
--- a/configure
+++ b/configure
@@ -3883,7 +3883,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
check_ldflags -Wl,--nxcompat
diff --git a/libavcodec/internal.h b/libavcodec/internal.h
index da1b2fa..868e3df 100644
--- a/libavcodec/internal.h
+++ b/libavcodec/internal.h
@@ -285,12 +285,8 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame);
*/
AVCPBProperties *ff_add_cpb_side_data(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
OpenPOWER on IntegriCloud