aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-09-04 14:30:37 +0100
committerMartin Storsjö <martin@martin.st>2012-09-05 17:07:30 +0300
commit4fa661a857f16d4afd322920442b075c2a84ec4c (patch)
treeb3103384656707ecb3d8b2cfaa4a28ce8e065fe7 /configure
parent0db2d94280e260af5f3ad7993c5a6357462f17c9 (diff)
downloadffmpeg-4fa661a857f16d4afd322920442b075c2a84ec4c.tar.gz
lavu: add snprintf(), vsnprint() and strtod() replacements for MS runtime.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 1c61e4bd9e..a11b9a10a2 100755
--- a/configure
+++ b/configure
@@ -1183,6 +1183,7 @@ HAVE_LIST="
mkstemp
mm_empty
mmap
+ msvcrt
nanosleep
poll_h
posix_memalign
@@ -2808,6 +2809,12 @@ elif check_header _mingw.h; then
die "ERROR: MinGW runtime version must be >= 3.15."
elif check_cpp_condition newlib.h "defined _NEWLIB_VERSION"; then
libc_type=newlib
+elif check_func_headers stdlib.h _get_doserrno; then
+ libc_type=msvcrt
+ add_cflags -Dstrtod=avpriv_strtod
+ add_cflags -Dsnprintf=avpriv_snprintf \
+ -D_snprintf=avpriv_snprintf \
+ -Dvsnprintf=avpriv_vsnprintf
elif check_cpp_condition stddef.h "defined __KLIBC__"; then
libc_type=klibc
fi