summaryrefslogtreecommitdiff
path: root/include/services.h
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-06-28 01:28:51 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-06-28 01:28:51 -0400
commit85b07a94d7d0c54e221dbbb8333870beb47bb3ac (patch)
tree7a3300c7fb0bb57e40f3f226b2c1d350384ab864 /include/services.h
parent2e4099e9f2bdcfab963c1e86a3f02d6b3c1b0048 (diff)
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.
Diffstat (limited to 'include/services.h')
-rw-r--r--include/services.h13
1 files changed, 3 insertions, 10 deletions
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)