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.
This commit is contained in:
wm4
2013-12-22 14:33:15 +01:00
parent 8b7048b7d5
commit e6bea0ec5a
4 changed files with 12 additions and 9 deletions

View File

@@ -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);

View File

@@ -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;