Commit 13252344 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '56af0bc1'

* commit '56af0bc1':
  configure: Check for strtoll and redirect to _strtoi64 in the msvcrt block

Also includes _strtoui64 in the check.
Merged-by: 's avatarClément Bœsch <cboesch@gopro.com>
parents 6426c58b 56af0bc1
...@@ -5055,6 +5055,10 @@ probe_libc(){ ...@@ -5055,6 +5055,10 @@ probe_libc(){
#endif #endif
#endif #endif
EOF EOF
if [ "$pfx" = "" ]; then
check_func strtoll || add_cflags -Dstrtoll=_strtoi64
check_func strtoull || add_cflags -Dstrtoull=_strtoui64
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
...@@ -6330,8 +6334,6 @@ elif enabled_any msvc icl; then ...@@ -6330,8 +6334,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
check_func strtoull || add_cflags -Dstrtoull=_strtoui64
# the new SSA optimzer in VS2015 U3 is mis-optimizing some parts of the code # the new SSA optimzer in VS2015 U3 is mis-optimizing some parts of the code
# Issue has been fixed in MSVC v19.00.24218. # Issue has been fixed in MSVC v19.00.24218.
check_cpp_condition windows.h "_MSC_FULL_VER >= 190024218" || check_cpp_condition windows.h "_MSC_FULL_VER >= 190024218" ||
......
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