summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-02 17:37:28 +0100
committerwm4 <wm4@nowhere>2014-11-02 17:38:07 +0100
commit12212a1685155c67049a0f30f14b7bf789a8c093 (patch)
tree5e2e43c1730bf7ff46d45ccda2bc01f7ca9b6a03 /common
parent975e98b3fe003cb8d93d9eadc14d82e72c0f4e27 (diff)
downloadmpv-12212a1685155c67049a0f30f14b7bf789a8c093.tar.bz2
mpv-12212a1685155c67049a0f30f14b7bf789a8c093.tar.xz
common: fix version variable declarations
This was stupid.
Diffstat (limited to 'common')
-rw-r--r--common/common.h4
-rw-r--r--common/version.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/common/common.h b/common/common.h
index b9c3e1e5ea..3e5ee1190f 100644
--- a/common/common.h
+++ b/common/common.h
@@ -60,8 +60,8 @@ enum stream_type {
STREAM_TYPE_COUNT,
};
-extern const char *mpv_version;
-extern const char *mpv_builddate;
+extern const char *const mpv_version;
+extern const char *const 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 196b2ff807..7e508a7e91 100644
--- a/common/version.c
+++ b/common/version.c
@@ -16,6 +16,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "common.h"
#include "version.h"
#ifdef NO_BUILD_TIMESTAMPS
#undef BUILDDATE