58 lines
1.8 KiB
C++
58 lines
1.8 KiB
C++
/*
|
|
* This file is part of the Flowee project
|
|
* Copyright (C) 2009-2015 The Bitcoin Core developers
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef FLOWEE_CLIENTVERSION_H
|
|
#define FLOWEE_CLIENTVERSION_H
|
|
|
|
#include "config/flowee-config.h"
|
|
|
|
/**
|
|
* Converts the parameter X to a string after macro replacement on X has been performed.
|
|
* Don't merge these into one macro!
|
|
*/
|
|
#define STRINGIZE(X) DO_STRINGIZE(X)
|
|
#define DO_STRINGIZE(X) #X
|
|
|
|
//! Copyright string used in Windows .rc files
|
|
#define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Flowee Developers"
|
|
|
|
/**
|
|
* bitcoind-res.rc includes this file, but it cannot cope with real c++ code.
|
|
* WINDRES_PREPROC is defined to indicate that its pre-processor is running.
|
|
* Anything other than a define should be guarded below.
|
|
*/
|
|
|
|
#if !defined(WINDRES_PREPROC)
|
|
|
|
#include <string>
|
|
|
|
static const int CLIENT_VERSION =
|
|
10000 * CLIENT_VERSION_MAJOR
|
|
+ 1000 * CLIENT_VERSION_MINOR
|
|
+ 1 * CLIENT_VERSION_REVISION;
|
|
|
|
extern const std::string CLIENT_BUILD;
|
|
extern const std::string CLIENT_DATE;
|
|
|
|
|
|
std::string FormatFullVersion();
|
|
|
|
#endif // WINDRES_PREPROC
|
|
|
|
#endif
|