Fix missing or inconsistent include guards

This commit is contained in:
practicalswift 2018-03-22 15:19:44 +01:00 committed by Jack Grigg
parent 653846b0a4
commit 4ddfb216ee
8 changed files with 24 additions and 25 deletions

View File

@ -3,8 +3,8 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
/** Functions for measurement of CPU cycles */
#ifndef H_PERF
#define H_PERF
#ifndef BITCOIN_BENCH_PERF_H
#define BITCOIN_BENCH_PERF_H
#include <stdint.h>
@ -34,4 +34,4 @@ uint64_t perf_cpucycles(void);
void perf_init(void);
void perf_fini(void);
#endif // H_PERF
#endif // BITCOIN_BENCH_PERF_H

View File

@ -4,8 +4,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#ifndef BITCOIN_KEYIO_H
#define BITCOIN_KEYIO_H
#ifndef BITCOIN_KEY_IO_H
#define BITCOIN_KEY_IO_H
#include <chainparams.h>
#include <key.h>
@ -47,4 +47,4 @@ public:
libzcash::SpendingKey DecodeSpendingKey(const std::string& str);
};
#endif // BITCOIN_KEYIO_H
#endif // BITCOIN_KEY_IO_H

View File

@ -2,8 +2,8 @@
// Copyright (c) 2009-2015 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#ifndef BITCOIN_POLICYESTIMATOR_H
#define BITCOIN_POLICYESTIMATOR_H
#ifndef BITCOIN_POLICY_FEES_H
#define BITCOIN_POLICY_FEES_H
#include "amount.h"
#include "uint256.h"
@ -280,4 +280,4 @@ private:
CFeeRate feeLikely, feeUnlikely;
double priLikely, priUnlikely;
};
#endif /*BITCOIN_POLICYESTIMATOR_H */
#endif // BITCOIN_POLICY_FEES_H

View File

@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#ifndef BITCOIN_RPCCLIENT_H
#define BITCOIN_RPCCLIENT_H
#ifndef BITCOIN_RPC_CLIENT_H
#define BITCOIN_RPC_CLIENT_H
#include <univalue.h>
@ -14,4 +14,4 @@ UniValue RPCConvertValues(const std::string& strMethod, const std::vector<std::s
*/
UniValue ParseNonRFCJSONValue(const std::string& strVal);
#endif // BITCOIN_RPCCLIENT_H
#endif // BITCOIN_RPC_CLIENT_H

View File

@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#ifndef BITCOIN_RPCPROTOCOL_H
#define BITCOIN_RPCPROTOCOL_H
#ifndef BITCOIN_RPC_PROTOCOL_H
#define BITCOIN_RPC_PROTOCOL_H
#include "fs.h"
@ -91,4 +91,4 @@ bool GetAuthCookie(std::string *cookie_out);
/** Delete RPC authentication cookie from disk */
void DeleteAuthCookie();
#endif // BITCOIN_RPCPROTOCOL_H
#endif // BITCOIN_RPC_PROTOCOL_H

View File

@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#ifndef BITCOIN_RPCREGISTER_H
#define BITCOIN_RPCREGISTER_H
#ifndef BITCOIN_RPC_REGISTER_H
#define BITCOIN_RPC_REGISTER_H
/** These are in one header file to avoid creating tons of single-function
* headers for everything under src/rpc/ */
@ -29,4 +29,4 @@ static inline void RegisterAllCoreRPCCommands(CRPCTable &tableRPC)
RegisterRawTransactionRPCCommands(tableRPC);
}
#endif
#endif // BITCOIN_RPC_REGISTER_H

View File

@ -3,8 +3,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#ifndef BITCOIN_RPCSERVER_H
#define BITCOIN_RPCSERVER_H
#ifndef BITCOIN_RPC_SERVER_H
#define BITCOIN_RPC_SERVER_H
#include "amount.h"
#include "rpc/protocol.h"
@ -188,4 +188,4 @@ extern std::string experimentalDisabledHelpMsg(const std::string& rpc, const std
extern int interpretHeightArg(int nHeight, int currentHeight);
extern int parseHeightArg(const std::string& strHeight, int currentHeight);
#endif // BITCOIN_RPCSERVER_H
#endif // BITCOIN_RPC_SERVER_H

View File

@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_WALLET_TEST_FIXTURE_H
#define BITCOIN_WALLET_TEST_FIXTURE_H
#ifndef BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
#define BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H
#include "test/test_bitcoin.h"
@ -14,5 +14,4 @@ struct WalletTestingSetup: public TestingSetup {
~WalletTestingSetup();
};
#endif
#endif // BITCOIN_WALLET_TEST_WALLET_TEST_FIXTURE_H