Mana
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2004-2009 The Mana World Development Team
4 * Copyright (C) 2009-2012 The Mana Developers
5 *
6 * This file is part of The Mana Client.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
52#ifdef PACKAGE_VERSION
53#define FULL_VERSION "Mana " PACKAGE_VERSION
54#else
55#define FULL_VERSION "Mana (unknown version)"
56#endif
57
58#ifdef PACKAGE_OS
59// If it's already been defined, let's not change it
60#elif defined __APPLE__
61#define PACKAGE_OS "Apple"
62#elif defined __FreeBSD__ || defined __DragonFly__
63#define PACKAGE_OS "FreeBSD"
64#elif defined __NetBSD__
65#define PACKAGE_OS "NetBSD"
66#elif defined __OpenBSD__
67#define PACKAGE_OS "OpenBSD"
68#elif defined __linux__ || defined __linux
69#define PACKAGE_OS "Linux"
70#elif defined __GNU__
71#define PACKAGE_OS "GNU Hurd"
72#elif defined __HAIKU__
73#define PACKAGE_OS "Haiku"
74#elif defined WIN32 || defined _WIN32 || defined __WIN32__ || defined __NT__ \
75 || defined WIN64 || defined _WIN64 || defined __WIN64__
76#define PACKAGE_OS "Windows"
77#else
78#define PACKAGE_OS "Other"
79#endif
80
81#ifdef PACKAGE_VERSION
82#define PACKAGE_EXTENDED_VERSION "Mana/" PACKAGE_VERSION " (" PACKAGE_OS "; %s)"
83#else
84#define PACKAGE_EXTENDED_VERSION "Mana (" PACKAGE_OS "; %s)"
85#endif
86
87#ifndef PKG_DATADIR
88#define PKG_DATADIR ""
89#endif