diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2013-11-25 23:28:11 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-11-26 09:54:40 +0100 |
commit | 4c4710a745ae484d1a17288f141c96fdd664ec73 (patch) | |
tree | 27aca21802949ff89663df06702c32161cc621e6 | |
parent | a9a3afec1a9c57a344f4ec09b6ba3db338a3c8bc (diff) | |
download | ffmpeg-4c4710a745ae484d1a17288f141c96fdd664ec73.tar.gz |
configure: define CONFIG_THIS_YEAR at the configure level
The macro value can be shared between configure script and cmdutils.c.
-rw-r--r-- | cmdutils.c | 2 | ||||
-rwxr-xr-x | configure | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c index c7e8acf391..ebb747a1a7 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -69,7 +69,7 @@ struct SwsContext *sws_opts; AVDictionary *swr_opts; AVDictionary *format_opts, *codec_opts, *resample_opts; -const int this_year = 2013; +const int this_year = CONFIG_THIS_YEAR; static FILE *report_file; @@ -4919,6 +4919,7 @@ cat > $TMPH <<EOF #define FFMPEG_CONFIG_H #define FFMPEG_CONFIGURATION "$(c_escape $FFMPEG_CONFIGURATION)" #define FFMPEG_LICENSE "$(c_escape $license)" +#define CONFIG_THIS_YEAR 2013 #define FFMPEG_DATADIR "$(eval c_escape $datadir)" #define AVCONV_DATADIR "$(eval c_escape $datadir)" #define CC_IDENT "$(c_escape ${cc_ident:-Unknown compiler})" |