Bug 1237140: don't export unecessary symbol using VS2015. r=glandium

This commit is contained in:
Jean-Yves Avenard 2016-01-19 23:06:15 +11:00
parent 5ace15405d
commit b0979bc661
3 changed files with 3 additions and 6 deletions

View File

@ -78,6 +78,7 @@ elif CONFIG['_MSC_VER']:
'-we4013', '-wd4100', '-wd4214', '-wd4307', '-wd4273', '-wd4554',
]
if CONFIG['_MSC_VER'] < '1900':
DEFINES['MSVC_2013_OR_LOWER'] = True
DEFINES['snprintf'] = "avpriv_snprintf"
DEFINES['_snprintf'] = "avpriv_snprintf"
DEFINES['vsnprintf'] = "avpriv_vsnprintf"

View File

@ -332,6 +332,8 @@ avutil_license
avutil_version
#ifdef XP_WIN
avpriv_emms_yasm
#ifdef MSVC_2013_OR_LOWER
avpriv_snprintf
#endif
avpriv_strtod
#endif

View File

@ -17,9 +17,3 @@ void ff_float_dsp_init_aarch64(AVFloatDSPContext *fdsp) {}
void ff_float_dsp_init_arm(AVFloatDSPContext *fdsp) {}
void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int strict) {}
void ff_float_dsp_init_mips(AVFloatDSPContext *fdsp) {}
// VS2015 (and later) now provides snprintf. As we have a global symbols
// file that do not allow conditional export, we create a dummy entry instead.
#if defined(_MSC_VER) && _MSC_VER >= 1900
int avpriv_snprintf(char *s, size_t n, const char *fmt, ...) { return 0; }
#endif