mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
build: fix objcc header check
$headers is a variable set in the context of other functions (we don't use the "local" keyword in our scripts, so those variables are global). Currently, when checking for AVFoundation/AVFoundation.h, the actual enabled header is math.h. Similarly, when testing for QuartzCore/CoreImage.h, the actual enabled header is CoreGraphics/CoreGraphics.h. This is completely broken and may be the reason why these checks are made in random places.
This commit is contained in:
parent
f61379cbd4
commit
b476e7720c
2
configure
vendored
2
configure
vendored
@ -1118,7 +1118,7 @@ check_header_objcc(){
|
|||||||
{
|
{
|
||||||
echo "#include <$header>"
|
echo "#include <$header>"
|
||||||
echo "int main(void) { return 0; }"
|
echo "int main(void) { return 0; }"
|
||||||
} | check_objcc && check_stat "$TMPO" && enable_safe $headers
|
} | check_objcc && check_stat "$TMPO" && enable_safe $header
|
||||||
}
|
}
|
||||||
|
|
||||||
check_func(){
|
check_func(){
|
||||||
|
Loading…
Reference in New Issue
Block a user