[7991] Added platform names to server version define.

This commit is contained in:
AlexDereka 2009-06-11 13:42:14 +04:00
parent 31957a22d6
commit ea0f9bcf09
2 changed files with 26 additions and 2 deletions

View file

@ -48,6 +48,16 @@
# define _ENDIAN_STRING "little-endian"
#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
#ifndef SYSCONFDIR
# define SYSCONFDIR ""
@ -62,7 +72,21 @@
# define _MANGOSD_CONFIG SYSCONFDIR"mangosd.conf"
# define _REALMD_CONFIG SYSCONFDIR"realmd.conf"
#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 _REALMD_CONFIG SYSCONFDIR"realmd.conf"
#endif

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7990"
#define REVISION_NR "7991"
#endif // __REVISION_NR_H__