mirror of https://git.ffmpeg.org/ffmpeg.git
configure: Add stdlib.h #include to CPPFLAGS check helper functions
This ensures that added CPPFLAGS are validated against libc headers.
This commit is contained in:
parent
f7ec7f546f
commit
0ce3761c78
|
@ -872,7 +872,7 @@ check_code(){
|
||||||
check_cppflags(){
|
check_cppflags(){
|
||||||
log check_cppflags "$@"
|
log check_cppflags "$@"
|
||||||
check_cpp "$@" <<EOF && append CPPFLAGS "$@"
|
check_cpp "$@" <<EOF && append CPPFLAGS "$@"
|
||||||
int x;
|
#include <stdlib.h>;
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1166,7 +1166,7 @@ check_host_cpp(){
|
||||||
check_host_cppflags(){
|
check_host_cppflags(){
|
||||||
log check_host_cppflags "$@"
|
log check_host_cppflags "$@"
|
||||||
check_host_cpp "$@" <<EOF && append host_cppflags "$@"
|
check_host_cpp "$@" <<EOF && append host_cppflags "$@"
|
||||||
int x;
|
#include <stdlib.h>;
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue