Skip to content
Snippets Groups Projects
Commit bd8b6185 authored by Diego Biurrun's avatar Diego Biurrun
Browse files

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

Simplifies host/target libc detection splitting.
parent 5ec46732
No related branches found
No related tags found
No related merge requests found
...@@ -3393,7 +3393,7 @@ elif check_header _mingw.h; then ...@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment