[tests] Remove unused function InsecureRandBytes(size_t len)
[bitcoinplatinum.git] / src / clientversion.h
blob3d5392619b1beebb4c4ff812127f5306e2e1d153
1 // Copyright (c) 2009-2016 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOIN_CLIENTVERSION_H
6 #define BITCOIN_CLIENTVERSION_H
8 #if defined(HAVE_CONFIG_H)
9 #include "config/bitcoin-config.h"
10 #endif //HAVE_CONFIG_H
12 // Check that required client information is defined
13 #if !defined(CLIENT_VERSION_MAJOR) || !defined(CLIENT_VERSION_MINOR) || !defined(CLIENT_VERSION_REVISION) || !defined(CLIENT_VERSION_BUILD) || !defined(CLIENT_VERSION_IS_RELEASE) || !defined(COPYRIGHT_YEAR)
14 #error Client version information missing: version is not defined by bitcoin-config.h or in any other way
15 #endif
17 /**
18 * Converts the parameter X to a string after macro replacement on X has been performed.
19 * Don't merge these into one macro!
21 #define STRINGIZE(X) DO_STRINGIZE(X)
22 #define DO_STRINGIZE(X) #X
24 //! Copyright string used in Windows .rc files
25 #define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
27 /**
28 * bitcoind-res.rc includes this file, but it cannot cope with real c++ code.
29 * WINDRES_PREPROC is defined to indicate that its pre-processor is running.
30 * Anything other than a define should be guarded below.
33 #if !defined(WINDRES_PREPROC)
35 #include <string>
36 #include <vector>
38 static const int CLIENT_VERSION =
39 1000000 * CLIENT_VERSION_MAJOR
40 + 10000 * CLIENT_VERSION_MINOR
41 + 100 * CLIENT_VERSION_REVISION
42 + 1 * CLIENT_VERSION_BUILD;
44 extern const std::string CLIENT_NAME;
45 extern const std::string CLIENT_BUILD;
48 std::string FormatFullVersion();
49 std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
51 #endif // WINDRES_PREPROC
53 #endif // BITCOIN_CLIENTVERSION_H