From 85b07a94d7d0c54e221dbbb8333870beb47bb3ac Mon Sep 17 00:00:00 2001 From: Naram Qashat Date: Mon, 28 Jun 2010 01:28:51 -0400 Subject: Fix version system so it doesn't cause the entire build tree to get rebuilt just because version.h gets regenerated, thanks to Adam for initial patch. --- include/services.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'include/services.h') diff --git a/include/services.h b/include/services.h index b234e438a..34041df2f 100644 --- a/include/services.h +++ b/include/services.h @@ -16,7 +16,6 @@ /*************************************************************************/ -#include "version.h" #include "sysconf.h" #define BUFSIZE 1024 @@ -364,7 +363,7 @@ inline const std::string stringify(const T &x) if (!(stream << x)) throw CoreException("Stringify fail"); - + return stream.str(); } @@ -1055,15 +1054,9 @@ class CoreExport Anope private: static const char * const compiled; public: - static inline const std::string Version() - { - return stringify(VERSION_MAJOR) + "." + stringify(VERSION_MINOR) + "." + stringify(VERSION_PATCH) + VERSION_EXTRA " (" + stringify(VERSION_BUILD) + ")"; - } + static std::string Version(); - static inline const std::string Build() - { - return "build #" + stringify(BUILD) + ", compiled " + compiled; - } + static std::string Build(); /** Check whether two strings match. * @param str The string to check against the pattern (e.g. foobar) -- cgit