[FFmpeg-cvslog] libavutil: Enable the MSVC DLL symbol loading workaround in shared builds as well
Martin Storsjö
git at videolan.org
Sat Aug 10 10:29:33 CEST 2013
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Aug 8 17:16:26 2013 +0300| [33237123c83bf4f8345e6ac889ad2e7dbd303d0e] | committer: Martin Storsjö
libavutil: Enable the MSVC DLL symbol loading workaround in shared builds as well
This used to only be necessary in static builds (when using the
dynamically linked C runtime), since the _imp prefixed symbols do
exist when linking to the actual DLL. When building testprogs,
however, the current library (e.g. libavutil for some of the testprogs)
is linked statically.
This fixes make fate on DLL builds when using the dynamically
linked C runtime.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=33237123c83bf4f8345e6ac889ad2e7dbd303d0e
---
libavutil/internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/internal.h b/libavutil/internal.h
index cb3a8f5..355a42a 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -119,7 +119,7 @@
#include "libm.h"
-#if defined(_MSC_VER) && !CONFIG_SHARED
+#if defined(_MSC_VER)
#pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_strtod")
#pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_snprintf")
#endif
More information about the ffmpeg-cvslog
mailing list