Anoncoin  0.9.4
P2P Digital Currency
clientversion.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 The Bitcoin developers
2 // Copyright (c) 2013-2015 The Anoncoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef ANONCOIN_CLIENTVERSION_H
7 #define ANONCOIN_CLIENTVERSION_H
8 
9 #if defined(HAVE_CONFIG_H)
10 #include "config/anoncoin-config.h"
11 #else
12 //
13 // client versioning and copyright year
14 //
15 
16 // Note: When anoncoin-config.h is undefined, these are needed to build
17 // things like the anoncoind-res.rc object file. Perhaps other tasks.
18 // Manually keep these the same as the rest of your build for a release.
19 // Anoncoin-config.h settings are what 'most' of the build process is using.
20 // anoncoind-res.rc for windows is at least one that needs these values to match.
21 //
22 
23 // These need to be macros, as version.cpp's and anoncoin-qt.rc's voodoo requires it
24 #define CLIENT_VERSION_MAJOR 0
25 #define CLIENT_VERSION_MINOR 9
26 #define CLIENT_VERSION_REVISION 4
27 #define CLIENT_VERSION_BUILD 3
28 
29 // Set to true for release, false for prerelease or test build
30 #define CLIENT_VERSION_IS_RELEASE false
31 
36 #define COPYRIGHT_YEAR 2015
37 
38 #endif //HAVE_CONFIG_H
39 
40 // Regardless of HAVE_CONFIG_H's state, these need to be declared, if they are not already.
41 //
42 // primecoin client version - ToDo: GR note - Needs review - copied these in so anc will compile the 'developer' branch.
43 // They should go here though, for ease in future upgrades. IMO LightCoin should also be listed
44 #if !defined(HAVE_PRIMECOIN_CONFIG_H)
45 #define HAVE_PRIMECOIN_CONFIG_H
46 
47 #define PRIMECOIN_VERSION_MAJOR 0
48 #define PRIMECOIN_VERSION_MINOR 1
49 #define PRIMECOIN_VERSION_REVISION 2
50 #define PRIMECOIN_VERSION_BUILD 0
51 #endif
52 
57 #define STRINGIZE(X) DO_STRINGIZE(X)
58 #define DO_STRINGIZE(X) #X
59 
61 #define COPYRIGHT_STR "2013-" STRINGIZE(COPYRIGHT_YEAR) " The Anoncoin Core Developers"
62 
69 #if !defined(WINDRES_PREPROC)
70 
71 #include <string>
72 #include <vector>
73 
74 static const int CLIENT_VERSION =
75  1000000 * CLIENT_VERSION_MAJOR
76  + 10000 * CLIENT_VERSION_MINOR
79 
80 extern const std::string CLIENT_NAME;
81 extern const std::string CLIENT_BUILD;
82 extern const std::string CLIENT_DATE;
83 
84 
85 std::string FormatFullVersion();
86 std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
87 
88 static const int PRIMECOIN_VERSION =
89  1000000 * PRIMECOIN_VERSION_MAJOR
90  + 10000 * PRIMECOIN_VERSION_MINOR
93 
94 #endif // WINDRES_PREPROC
95 
96 #endif // ANONCOIN_CLIENTVERSION_H
std::string FormatSubVersion(const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
Format the subversion field according to BIP 14 spec (https://github.com/bitcoin/bips/blob/master/bip...
#define PRIMECOIN_VERSION_REVISION
Definition: clientversion.h:49
#define PRIMECOIN_VERSION_MAJOR
Definition: clientversion.h:47
#define CLIENT_VERSION_MAJOR
Definition: clientversion.h:24
#define CLIENT_VERSION_MINOR
Definition: clientversion.h:25
#define PRIMECOIN_VERSION_MINOR
Definition: clientversion.h:48
#define PRIMECOIN_VERSION_BUILD
Definition: clientversion.h:50
std::string FormatFullVersion()
const std::string CLIENT_NAME
#define CLIENT_VERSION_BUILD
Definition: clientversion.h:27
const std::string CLIENT_DATE
const std::string CLIENT_BUILD
#define CLIENT_VERSION_REVISION
Definition: clientversion.h:26