From 723e3ec8d9acbbb2ad12c8b458e8c43e55a9ec2d Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 Sep 2016 17:58:00 +0200 Subject: common: use char array for version string Use a char array instead of a pointer, which allows using the version variables in a constant context. --- common/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/common.h') diff --git a/common/common.h b/common/common.h index b687ffccf0..c78409b3f4 100644 --- a/common/common.h +++ b/common/common.h @@ -65,8 +65,8 @@ enum { DATA_EOF = -2, }; -extern const char *const mpv_version; -extern const char *const mpv_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); -- cgit v1.2.3