From e8b0e83bc81c42b31818ab8c865eda91fdc15a14 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 20 Dec 2019 01:12:14 +0100 Subject: [PATCH] Update version template. --- src/version.hpp.in | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/version.hpp.in b/src/version.hpp.in index cec7915..ec2ea02 100644 --- a/src/version.hpp.in +++ b/src/version.hpp.in @@ -1,9 +1,13 @@ -#ifndef VERSION_HPP -#define VERSION_HPP +#ifndef MASTORSS_VERSION_HPP +#define MASTORSS_VERSION_HPP -namespace global +#include + +namespace mastorss { - static constexpr char version[] = "@PROJECT_VERSION@"; -} +using std::string_view; -#endif // VERSION_HPP +static constexpr string_view version = "@PROJECT_VERSION@"; +} // namespace mastorss + +#endif // MASTORSS_VERSION_HPP