mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
//------------------------------------------------------------------------------
|
|
/*
|
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
|
*/
|
|
//==============================================================================
|
|
|
|
#ifndef RIPPLE_VERSION_H
|
|
#define RIPPLE_VERSION_H
|
|
|
|
//
|
|
// Versions
|
|
//
|
|
|
|
// VFALCO TODO Roll this together into ripple_BuildVersion
|
|
#define SERVER_VERSION_MAJOR 0
|
|
#define SERVER_VERSION_MINOR 9
|
|
#define SERVER_VERSION_SUB "-b"
|
|
#define SERVER_NAME "Ripple"
|
|
|
|
#define SV_STRINGIZE(x) SV_STRINGIZE2(x)
|
|
#define SV_STRINGIZE2(x) #x
|
|
#define SERVER_VERSION \
|
|
(SERVER_NAME "-" SV_STRINGIZE(SERVER_VERSION_MAJOR) "." SV_STRINGIZE(SERVER_VERSION_MINOR) SERVER_VERSION_SUB)
|
|
|
|
// Version we prefer to speak:
|
|
#define PROTO_VERSION_MAJOR 1
|
|
#define PROTO_VERSION_MINOR 2
|
|
|
|
// Version we will speak to:
|
|
#define MIN_PROTO_MAJOR 1
|
|
#define MIN_PROTO_MINOR 2
|
|
|
|
#define MAKE_VERSION_INT(maj,min) ((maj << 16) | min)
|
|
#define GET_VERSION_MAJOR(ver) (ver >> 16)
|
|
#define GET_VERSION_MINOR(ver) (ver & 0xff)
|
|
|
|
#endif
|
|
// vim:ts=4
|