summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2006-01-05 22:31:06 +0000
committerYohann Ferreira <bertram@cegetel.net>2006-01-05 22:31:06 +0000
commitac150f3543caf86fd071c73f53373b4ea243fa24 (patch)
treefe9153f45c42d07e32fe20b5dfcb8a0baf448273 /src/main.cpp
parent48375c7ea578313a0b578078eadada2e3744b363 (diff)
downloadmanaserv-ac150f3543caf86fd071c73f53373b4ea243fa24.tar.gz
manaserv-ac150f3543caf86fd071c73f53373b4ea243fa24.tar.xz
manaserv-ac150f3543caf86fd071c73f53373b4ea243fa24.zip
Added a standard version check.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d39b04c..83b3024 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -343,8 +343,10 @@ void parseOptions(int argc, char *argv[])
*/
int main(int argc, char *argv[])
{
-#if (defined __USE_UNIX98 || defined __FreeBSD__)
+#ifdef PACKAGE_VERSION
LOG_INFO("The Mana World Server v" << PACKAGE_VERSION, 0)
+#else
+ LOG_INFO("The Mana World Server v" << DEFAULT_PACKAGE_VERSION, 0)
#endif
// Parse Command Line Options