libavutil: Enable the MSVC DLL symbol loading workaround in shared builds as well
authorMartin Storsjö <martin@martin.st>
Thu, 8 Aug 2013 14:16:26 +0000 (17:16 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 9 Aug 2013 21:53:25 +0000 (00:53 +0300)
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@martin.st>
libavutil/internal.h

index cb3a8f5..355a42a 100644 (file)
 
 #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