aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-12-04 10:25:04 -0500
committerDiego Biurrun <diego@biurrun.de>2013-12-04 11:50:59 -0500
commitbd8b6185f6d1fb0433f048c4096b858e6f88ded6 (patch)
tree686361c57bf4e15517e9eb18c45f241d1856a05c
parent5ec467328122b80fac94c2d5e3e7540d50381868 (diff)
downloadffmpeg-bd8b6185f6d1fb0433f048c4096b858e6f88ded6.tar.gz
configure: Detect msvcrt libc with a CPP check instead of a link check
Simplifies host/target libc detection splitting.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index dfa8d9db6d..663fe6dc94 100755
--- a/configure
+++ b/configure
@@ -3393,7 +3393,7 @@ elif check_header _mingw.h; then
(__MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 15)" ||
die "ERROR: MinGW runtime version must be >= 3.15."
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
add_compat strtod.o strtod=avpriv_strtod
add_compat msvcrt/snprintf.o snprintf=avpriv_snprintf \