1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

configure: Detect msvcrt libc with a CPP check instead of a link check

Simplifies host/target libc detection splitting.
This commit is contained in:
Diego Biurrun 2013-12-04 10:25:04 -05:00
parent 5ec4673281
commit bd8b6185f6

2
configure vendored
View File

@ -3393,7 +3393,7 @@ elif check_header _mingw.h; then
(__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" || (__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
die "ERROR: MinGW runtime version must be >= 3.15." die "ERROR: MinGW runtime version must be >= 3.15."
add_cppflags -U__STRICT_ANSI__ add_cppflags -U__STRICT_ANSI__
elif check_func_headers stdlib.h _get_doserrno; then elif check_cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; then
libc_type=msvcrt libc_type=msvcrt
add_compat strtod.o strtod=avpriv_strtod add_compat strtod.o strtod=avpriv_strtod
add_compat msvcrt/snprintf.o snprintf=avpriv_snprintf \ add_compat msvcrt/snprintf.o snprintf=avpriv_snprintf \