Commit dcc540db authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '342b0ba5'

* commit '342b0ba5':
  configure: Only redirect strtoll to _strtoi64 if necessary

Conflicts:
	configure
Merged-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parents 27e61a71 342b0ba5
...@@ -3660,7 +3660,7 @@ probe_cc(){ ...@@ -3660,7 +3660,7 @@ probe_cc(){
_flags='-nologo -Qdiag-error:4044,10157' _flags='-nologo -Qdiag-error:4044,10157'
# -Qvec- -Qsimd- to prevent miscompilation, -GS, fp:precise for consistency # -Qvec- -Qsimd- to prevent miscompilation, -GS, fp:precise for consistency
# with MSVC which enables it by default. # with MSVC which enables it by default.
_cflags='-D_USE_MATH_DEFINES -Dstrtoll=_strtoi64 -Qms0 -Qvec- -Qsimd- -GS -fp:precise' _cflags='-D_USE_MATH_DEFINES -Qms0 -Qvec- -Qsimd- -GS -fp:precise'
disable stripping disable stripping
elif $_cc -nologo- 2>&1 | grep -q Microsoft; then elif $_cc -nologo- 2>&1 | grep -q Microsoft; then
_type=msvc _type=msvc
...@@ -3680,7 +3680,7 @@ probe_cc(){ ...@@ -3680,7 +3680,7 @@ probe_cc(){
_ld_lib='lib%.a' _ld_lib='lib%.a'
_ld_path='-libpath:' _ld_path='-libpath:'
_flags='-nologo' _flags='-nologo'
_cflags='-D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -Dstrtoll=_strtoi64' _cflags='-D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS'
disable stripping disable stripping
elif $_cc --version 2>/dev/null | grep -q ^cparser; then elif $_cc --version 2>/dev/null | grep -q ^cparser; then
_type=cparser _type=cparser
...@@ -5681,6 +5681,7 @@ elif enabled_any msvc icl; then ...@@ -5681,6 +5681,7 @@ 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