mirror of https://git.ffmpeg.org/ffmpeg.git
Fix check_func_headers. The reference to the function under test was being
optimized out by gcc when the headers lied about the function existing, rendering the test useless in that situation. This new test throws a warning in mingw-w64, but that should not be a problem. Patch by Martin Storsjö <martin at martin dot st> Originally committed as revision 19440 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
973859f523
commit
2b2c2a8179
|
@ -646,8 +646,7 @@ check_func_headers(){
|
||||||
check_ld "$@" <<EOF && enable $func && enable_safe $headers
|
check_ld "$@" <<EOF && enable $func && enable_safe $headers
|
||||||
$incs
|
$incs
|
||||||
int main(int argc, char **argv){
|
int main(int argc, char **argv){
|
||||||
(void) $func;
|
return (long) $func;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue