mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237140: don't export unecessary symbol using VS2015. r=glandium
This commit is contained in:
parent
5ace15405d
commit
b0979bc661
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user