aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-03 00:54:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-03 00:54:37 +0200
commite771425e985efd140474c2bc93333da6de14edee (patch)
treedd5a77f7d7d3e787d6be0bf7c9f8e964acb222a9
parent6f9e6ac6aa3c670cb5c9f853095ae47fe0c40487 (diff)
parentec772cca60423b9994fe00c7cef239f93eae6112 (diff)
downloadffmpeg-e771425e985efd140474c2bc93333da6de14edee.tar.gz
Merge commit 'ec772cca60423b9994fe00c7cef239f93eae6112' into release/0.10
* commit 'ec772cca60423b9994fe00c7cef239f93eae6112': drawtext: Drop pointless header configure: Support preprocessor macros as header names Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure9
-rw-r--r--libavfilter/vf_drawtext.c1
2 files changed, 8 insertions, 2 deletions
diff --git a/configure b/configure
index f34b622e03..3925e8fc84 100755
--- a/configure
+++ b/configure
@@ -688,6 +688,13 @@ check_ld(){
check_cmd $ld $LDFLAGS $flags -o $TMPE $TMPO $libs $extralibs
}
+print_include(){
+ hdr=$1
+ test "${hdr%.h}" = "${hdr}" &&
+ echo "#include $hdr" ||
+ echo "#include <$hdr>"
+}
+
check_cppflags(){
log check_cppflags "$@"
set -- $($filter_cppflags "$@")
@@ -765,7 +772,7 @@ check_func_headers(){
shift 2
{
for hdr in $headers; do
- echo "#include <$hdr>"
+ print_include $hdr
done
for func in $funcs; do
echo "long check_$func(void) { return (long) $func; }"
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index d0d854b994..b31d2e256c 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -47,7 +47,6 @@
#undef time
#include <ft2build.h>
-#include <freetype/config/ftheader.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H