X-Git-Url: https://git.libav.org/?p=libav.git;a=blobdiff_plain;f=libavutil%2Finternal.h;h=4264c4e6d52c1e1a903b1fb4fe1b3ecc68110038;hp=800680a7f2174d544c618d68bb30bcb34c77ff26;hb=a6f19d6a9f8d1e08653d9d77581e8c823f4955c2;hpb=bc76c46943272515805d7ac48ca39f14826d1fed diff --git a/libavutil/internal.h b/libavutil/internal.h index 800680a7f2..4264c4e6d5 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -130,11 +130,6 @@ #include "libm.h" -#if defined(_MSC_VER) -#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 @@ -208,6 +203,12 @@ void avpriv_request_sample(void *avc, const char *msg, ...) av_printf_format(2, 3); #if HAVE_LIBC_MSVCRT +#include +#if defined(_VC_CRT_MAJOR_VERSION) && _VC_CRT_MAJOR_VERSION < 14 +#pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_strtod") +#pragma comment(linker, "/include:"EXTERN_PREFIX"avpriv_snprintf") +#endif + #define avpriv_open ff_open #endif