1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-25 16:46:38 +02:00
Files
unrealircd/include/version.h
T
Bram Matthys 6c0ebb5bd3 Protection against linking race conditions is back again (IOTW: allow very rapid re-linking), but only if your network is fully 3.4.x (actually: current git unreal34 or later)
Re-implemented PROTOCTL SERVERS= which nenolod ripped out (#4355).
Add 2nd argument to PROTOCTL EAUTH=servername,unrealprotocol
Change UnrealProtocol from 2350 to 2351
2015-07-10 21:57:13 +02:00

73 lines
1.8 KiB
C

/*
**
** version.h
** UnrealIRCd
** $Id$
*/
#ifndef __versioninclude
#define __versioninclude 1
/*
* Utility macros to convert version number constants to strings.
* Delayed expansion requires two macros to work. See:
*
* $ info '(cpp) Stringification'
*/
#define _macro_to_str(n) #n
#define macro_to_str(n) _macro_to_str(n)
/*
* Mark of settings
*/
#ifdef DEBUGMODE
#define DEBUGMODESET "+(debug)"
#else
#define DEBUGMODESET ""
#endif
/**/
#ifdef DEBUG
#define DEBUGSET "(Debug)"
#else
#define DEBUGSET ""
#endif
/**/
#define COMPILEINFO DEBUGMODESET DEBUGSET
/* Version info follows
* Please be sure to update ALL fields when changing the version.
* Also don't forget to bump the protocol version every release.
*/
/**
* The following code concerns UNREAL_VERSION_GENERATION,
* UNREAL_VERSION_MAJOR, and UNREAL_VERSION_MINOR.
*
* These UNREAL_VERSION_* macros can be used so (3rd party) modules
* can easily distinguish versions.
*
* They are set during ./configure, so update ./configure.ac's AC_INIT
* line upon a new release.
*/
/** Year + week of the year (ISO week number, with Monday as first day of week)
* Can be useful if the above 3 versionids are insufficient for you (eg: you want to support CVS).
* This is updated automatically on the CVS server every Monday. so don't touch it.
*/
#define UNREAL_VERSION_TIME 201411
#define UnrealProtocol 2351
#define PATCH1 macro_to_str(UNREAL_VERSION_GENERATION)
#define PATCH2 "." macro_to_str(UNREAL_VERSION_MAJOR)
#define PATCH3 ""
#define PATCH4 UNREAL_VERSION_SUFFIX
#define PATCH5 ""
#define PATCH6 ""
#define PATCH7 ""
#define PATCH8 COMPILEINFO
#define PATCH9 ""
/* release header */
#define Rh BASE_VERSION
#define VERSIONONLY PATCH1 PATCH2 PATCH3 PATCH4 PATCH5 PATCH6 PATCH7
#endif /* __versioninclude */