summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-11-25 23:28:11 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-11-26 09:54:40 +0100
commit4c4710a745ae484d1a17288f141c96fdd664ec73 (patch)
tree27aca21802949ff89663df06702c32161cc621e6
parenta9a3afec1a9c57a344f4ec09b6ba3db338a3c8bc (diff)
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.c2
-rwxr-xr-xconfigure1
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;
diff --git a/configure b/configure
index 4aeeb8075c..aaf5c8f7bd 100755
--- a/configure
+++ b/configure
@@ -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})"