diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-03 00:54:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-03 00:54:37 +0200 |
commit | e771425e985efd140474c2bc93333da6de14edee (patch) | |
tree | dd5a77f7d7d3e787d6be0bf7c9f8e964acb222a9 | |
parent | 6f9e6ac6aa3c670cb5c9f853095ae47fe0c40487 (diff) | |
parent | ec772cca60423b9994fe00c7cef239f93eae6112 (diff) | |
download | ffmpeg-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-x | configure | 9 | ||||
-rw-r--r-- | libavfilter/vf_drawtext.c | 1 |
2 files changed, 8 insertions, 2 deletions
@@ -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 |