From 06122c253394b10a694d3d95e00e503c89852134 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 6 May 2013 23:08:41 +0300 Subject: msvc: Move linker pragma from config.h to libavutil/internal.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes linking succeed for tools that include config.h but don't link to libavutil. Signed-off-by: Martin Storsjö --- libavutil/internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavutil/internal.h') diff --git a/libavutil/internal.h b/libavutil/internal.h index 5f4b060926..49534d4b58 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -111,6 +111,11 @@ #include "libm.h" +#if defined(_MSC_VER) && !CONFIG_SHARED +#pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_strtod") +#pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_snprintf") +#endif + /** * Return NULL if CONFIG_SMALL is true, otherwise the argument * without modification. Used to disable the definition of strings -- cgit v1.2.3