[FFmpeg-cvslog] configure: Check for strtoll and redirect to _strtoi64 in the msvcrt block

Martin Storsjö git at videolan.org
Wed Mar 15 13:44:04 EET 2017


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Jul 20 23:39:20 2016 +0300| [56af0bc10f49654b5b5f3efe82c69a13bf15fc8b] | committer: Martin Storsjö

configure: Check for strtoll and redirect to _strtoi64 in the msvcrt block

This allows doing this redirection, if building with clang against
old enough MSVC headers that lack strtoll (2012 and older).

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56af0bc10f49654b5b5f3efe82c69a13bf15fc8b
---

 configure | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index f12fa6f..6f5daef 100755
--- a/configure
+++ b/configure
@@ -4008,6 +4008,9 @@ probe_libc(){
 #endif
 #endif
 EOF
+        if [ "$pfx" = "" ]; then
+            check_func strtoll || add_cflags -Dstrtoll=_strtoi64
+        fi
     elif check_${pfx}cpp_condition stddef.h "defined __KLIBC__"; then
         eval ${pfx}libc_type=klibc
     elif check_${pfx}cpp_condition sys/cdefs.h "defined __BIONIC__"; then
@@ -4979,7 +4982,6 @@ elif enabled_any msvc icl; then
 __declspec($_restrict) void* foo(int);
 EOF
     fi
-    check_func strtoll || add_cflags -Dstrtoll=_strtoi64
 fi
 
 for pfx in "" host_; do



More information about the ffmpeg-cvslog mailing list