diff options
author | Martin Storsjö <martin@martin.st> | 2013-05-07 00:08:41 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-05-08 02:28:25 +0400 |
commit | 06122c253394b10a694d3d95e00e503c89852134 (patch) | |
tree | 8816e8db7f644edf24b23d0e2350ab3471bad6aa /libavutil | |
parent | bd392785a75d7d51414a9788d50396a8d9f29d77 (diff) |
msvc: Move linker pragma from config.h to libavutil/internal.h
This makes linking succeed for tools that include config.h but
don't link to libavutil.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |