Skip to content

Commit 3323712

Browse files
committed
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ö <[email protected]>
1 parent 9d5ec50 commit 3323712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libavutil/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119

120120
#include "libm.h"
121121

122-
#if defined(_MSC_VER) && !CONFIG_SHARED
122+
#if defined(_MSC_VER)
123123
#pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_strtod")
124124
#pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_snprintf")
125125
#endif

0 commit comments

Comments
 (0)