summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-22 14:33:15 +0100
committerwm4 <wm4@nowhere>2013-12-22 14:35:45 +0100
commite6bea0ec5a5acfed719dfbd89a812a1aa31a9ac5 (patch)
treece3a810bbe9b030fb858e6bd0aaf270ccf15446e /common
parent8b7048b7d54d7e1a163d6efc994dbd3792812334 (diff)
downloadmpv-e6bea0ec5a5acfed719dfbd89a812a1aa31a9ac5.tar.bz2
mpv-e6bea0ec5a5acfed719dfbd89a812a1aa31a9ac5.tar.xz
Don't include version.h from make options.c
I find this annoying. It's the reason common/version.c exists at all. options.c did this for the user agent, which contains the version number. Because not including version.h means you can't build the user agent and use it in mp_default_opts anymore, do something rather awkward in main.c to initialize the default user agent.
Diffstat (limited to 'common')
-rw-r--r--common/common.h4
-rw-r--r--common/version.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/common/common.h b/common/common.h
index 9e751ee851..ae2fb8f2d5 100644
--- a/common/common.h
+++ b/common/common.h
@@ -59,8 +59,8 @@ enum stream_type {
STREAM_TYPE_COUNT,
};
-extern const char *mplayer_version;
-extern const char *mplayer_builddate;
+extern const char *mpv_version;
+extern const char *mpv_builddate;
char *mp_format_time(double time, bool fractions);
char *mp_format_time_fmt(const char *fmt, double time);
diff --git a/common/version.c b/common/version.c
index 23a0c59bc3..83177a5fc7 100644
--- a/common/version.c
+++ b/common/version.c
@@ -22,5 +22,5 @@
#define BUILDDATE "UNKNOWN"
#endif
-const char *mplayer_version = "mpv " VERSION;
-const char *mplayer_builddate = BUILDDATE;
+const char *mpv_version = "mpv " VERSION;
+const char *mpv_builddate = BUILDDATE;