]> Git Repo - VerusCoin.git/blame - src/clientversion.h
Merge pull request #42 from jl777/dev
[VerusCoin.git] / src / clientversion.h
CommitLineData
f914f1a7 1// Copyright (c) 2009-2014 The Bitcoin Core developers
83aac130 2// Copyright (c) 2016-2017 The Zcash developers
484e350f 3// Distributed under the MIT software license, see the accompanying
4d04492b
PK
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
84738627
PJ
6#ifndef BITCOIN_CLIENTVERSION_H
7#define BITCOIN_CLIENTVERSION_H
f8759211 8
35b8af92 9#if defined(HAVE_CONFIG_H)
f3967bcc 10#include "config/bitcoin-config.h"
35b8af92 11#else
f8759211 12
484e350f
MF
13/**
14 * client versioning and copyright year
15 */
16
17//! These need to be macros, as clientversion.cpp's and bitcoin*-res.rc's voodoo requires it
f11099e2
SB
18#define CLIENT_VERSION_MAJOR 1
19#define CLIENT_VERSION_MINOR 0
1dd95be4 20#define CLIENT_VERSION_REVISION 15
945f015d 21#define CLIENT_VERSION_BUILD 52
f8759211 22
484e350f 23//! Set to true for release, false for prerelease or test build
998202ba 24#define CLIENT_VERSION_IS_RELEASE true
62e21fb5 25
484e350f
MF
26/**
27 * Copyright year (2009-this)
28 * Todo: update this when changing our copyright comments in the source
29 */
2ddec8f0 30#define COPYRIGHT_YEAR 2017
ec3cac66 31
35b8af92
CF
32#endif //HAVE_CONFIG_H
33
484e350f
MF
34/**
35 * Converts the parameter X to a string after macro replacement on X has been performed.
36 * Don't merge these into one macro!
37 */
f8759211
PK
38#define STRINGIZE(X) DO_STRINGIZE(X)
39#define DO_STRINGIZE(X) #X
40
484e350f 41//! Copyright string used in Windows .rc files
d14207f6 42#define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Bitcoin Core Developers and The Zcash developers"
8d9cc7d7 43
484e350f
MF
44/**
45 * bitcoind-res.rc includes this file, but it cannot cope with real c++ code.
46 * WINDRES_PREPROC is defined to indicate that its pre-processor is running.
47 * Anything other than a define should be guarded below.
48 */
71697f97
CF
49
50#if !defined(WINDRES_PREPROC)
51
52#include <string>
53#include <vector>
54
55static const int CLIENT_VERSION =
56 1000000 * CLIENT_VERSION_MAJOR
57 + 10000 * CLIENT_VERSION_MINOR
58 + 100 * CLIENT_VERSION_REVISION
59 + 1 * CLIENT_VERSION_BUILD;
60
61extern const std::string CLIENT_NAME;
62extern const std::string CLIENT_BUILD;
63extern const std::string CLIENT_DATE;
64
65
5b3bc971 66std::string FormatVersion(int nVersion);
71697f97
CF
67std::string FormatFullVersion();
68std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
69
70#endif // WINDRES_PREPROC
71
84738627 72#endif // BITCOIN_CLIENTVERSION_H
This page took 0.185103 seconds and 4 git commands to generate.