Commit 56af0bc1 authored by Martin Storsjö's avatar 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: 's avatarMartin Storsjö <martin@martin.st>
parent 48b80f83
...@@ -4008,6 +4008,9 @@ probe_libc(){ ...@@ -4008,6 +4008,9 @@ probe_libc(){
#endif #endif
#endif #endif
EOF EOF
if [ "$pfx" = "" ]; then
check_func strtoll || add_cflags -Dstrtoll=_strtoi64
fi
elif check_${pfx}cpp_condition stddef.h "defined __KLIBC__"; then elif check_${pfx}cpp_condition stddef.h "defined __KLIBC__"; then
eval ${pfx}libc_type=klibc eval ${pfx}libc_type=klibc
elif check_${pfx}cpp_condition sys/cdefs.h "defined __BIONIC__"; then elif check_${pfx}cpp_condition sys/cdefs.h "defined __BIONIC__"; then
...@@ -4979,7 +4982,6 @@ elif enabled_any msvc icl; then ...@@ -4979,7 +4982,6 @@ elif enabled_any msvc icl; then
__declspec($_restrict) void* foo(int); __declspec($_restrict) void* foo(int);
EOF EOF
fi fi
check_func strtoll || add_cflags -Dstrtoll=_strtoi64
fi fi
for pfx in "" host_; do for pfx in "" host_; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment