mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[7991] Added platform names to server version define.
This commit is contained in:
parent
31957a22d6
commit
ea0f9bcf09
2 changed files with 26 additions and 2 deletions
|
|
@ -48,6 +48,16 @@
|
||||||
# define _ENDIAN_STRING "little-endian"
|
# define _ENDIAN_STRING "little-endian"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_IX86)
|
||||||
|
# define ARCHITECTURE "x32"
|
||||||
|
#elif defined(__amd64) || defined(__amd64__) || defined(__x86_64) || defined(_M_X64)
|
||||||
|
# define ARCHITECTURE "x64"
|
||||||
|
#elif defined(__ia64) || defined(__IA64__) || defined(_M_IA64)
|
||||||
|
# define ARCHITECTURE "IA64"
|
||||||
|
#else
|
||||||
|
# define ARCHITECTURE "x32"
|
||||||
|
#endif
|
||||||
|
|
||||||
// The path to config files
|
// The path to config files
|
||||||
#ifndef SYSCONFDIR
|
#ifndef SYSCONFDIR
|
||||||
# define SYSCONFDIR ""
|
# define SYSCONFDIR ""
|
||||||
|
|
@ -62,7 +72,21 @@
|
||||||
# define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
|
# define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
|
||||||
# define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
|
# define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
|
||||||
#else
|
#else
|
||||||
# define _ENDIAN_PLATFORM "Unix (" _ENDIAN_STRING ")"
|
# if defined (__FreeBSD__)
|
||||||
|
# define _ENDIAN_PLATFORM "FreeBSD_"ARCHITECTURE" (" _ENDIAN_STRING ")"
|
||||||
|
# elif defined(__NetBSD__)
|
||||||
|
# define _ENDIAN_PLATFORM "NetBSD_"ARCHITECTURE" (" _ENDIAN_STRING ")"
|
||||||
|
# elif defined(__OpenBSD__)
|
||||||
|
# define _ENDIAN_PLATFORM "OpenBSD_"ARCHITECTURE" (" _ENDIAN_STRING ")"
|
||||||
|
# elif defined(__DragonFly__)
|
||||||
|
# define _ENDIAN_PLATFORM "DragonFlyBSD_"ARCHITECTURE" (" _ENDIAN_STRING ")"
|
||||||
|
# elif defined(__APPLE__)
|
||||||
|
# define _ENDIAN_PLATFORM "MacOSX_"ARCHITECTURE" (" _ENDIAN_STRING ")"
|
||||||
|
# elif defined(__linux) || defined(__linux__)
|
||||||
|
# define _ENDIAN_PLATFORM "Linux_"ARCHITECTURE" (" _ENDIAN_STRING ")"
|
||||||
|
# else
|
||||||
|
# define _ENDIAN_PLATFORM "Unix_"ARCHITECTURE" (" _ENDIAN_STRING ")"
|
||||||
|
# endif
|
||||||
# define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
|
# define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
|
||||||
# define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
|
# define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7990"
|
#define REVISION_NR "7991"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue