summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-02-27 10:35:57 -0700
committerJared Adams <jaxad0127@gmail.com>2010-02-27 11:01:24 -0700
commit43ccd84af0707b29b146a9ea3d21094d6eb30e3a (patch)
treec2e371bf82366bbcae1ede8758d087c54572c489 /src/main.h
parent024ad66a350883597ba4c34d1c5868ef43c086a0 (diff)
downloadmana-43ccd84af0707b29b146a9ea3d21094d6eb30e3a.tar.gz
mana-43ccd84af0707b29b146a9ea3d21094d6eb30e3a.tar.bz2
mana-43ccd84af0707b29b146a9ea3d21094d6eb30e3a.tar.xz
mana-43ccd84af0707b29b146a9ea3d21094d6eb30e3a.zip
Report more info on client in cURL useragent and Desktop
Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index 03e0c7b3..3f30ef14 100644
--- a/src/main.h
+++ b/src/main.h
@@ -55,7 +55,7 @@
#elif defined WIN32
#include "winver.h"
#elif defined __APPLE__
-#define PACKAGE_VERSION "0.0.29.1"
+#define PACKAGE_VERSION "1.0.0"
#endif
#ifdef PACKAGE_VERSION
@@ -64,6 +64,33 @@
#define FULL_VERSION "Unknown Version"
#endif
+#ifdef PACKAGE_OS
+// If it's already been defined, let's not change it
+#elif defined __APPLE__
+#define PACKAGE_OS "Apple"
+#elif defined __FreeBSD__ || defined __DragonFly__
+#define PACKAGE_OS "FreeBSD"
+#elif defined __NetBSD__
+#define PACKAGE_OS "NetBSD"
+#elif defined __OpenBSD__
+#define PACKAGE_OS "OpenBSD"
+#elif defined __linux__ || defined __linux
+#define PACKAGE_OS "Linux"
+#elif defined __GNU__
+#define PACKAGE_OS "GNU Hurd"
+#elif defined WIN32 || defined _WIN32 || defined __WIN32__ || defined __NT__ \
+ || defined WIN64 || defined _WIN64 || defined __WIN64__
+#define PACKAGE_OS "Windows"
+#else
+#define PACKAGE_OS "Other"
+#endif
+
+#ifdef PACKAGE_VERSION
+#define PACKAGE_EXTENDED_VERSION "Mana/" PACKAGE_VERSION " (" PACKAGE_OS "; %s)"
+#else
+#define PACKAGE_EXTENDED_VERSION "Mana (" PACKAGE_OS "; %s)"
+#endif
+
#ifndef PKG_DATADIR
#define PKG_DATADIR ""
#endif