mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-25 06:19:25 +02:00
Merge bitcoin/bitcoin#25472: build: Increase MS Visual Studio minimum version
630c1711b4refactor: Drop no longer needed `util/designator.h` (Hennadii Stepanov)88ec5d40dcbuild: Increase MS Visual Studio minimum version (Hennadii Stepanov)555f9dd5d3rpc, refactor: Add `decodepsbt_outputs` (Hennadii Stepanov)0c432cbbfarpc, refactor: Add `decodepsbt_inputs` (Hennadii Stepanov)01d95a3964rpc, refactor: Add `getblock_prevout` (Hennadii Stepanov) Pull request description: Visual Studio 2022 with `/std:c++20` supports [designated initializers](https://github.com/bitcoin/bitcoin/pull/24531). ACKs for top commit: sipsorcery: reACK630c1711b4. Tree-SHA512: 5b8933940dd69061c6b077512168bebb6fea05d429b63ffbab191950798b4c825e8484b1a651db0ae13f97eae481097d3c16395659c0f3b9f847af2aaf44b65d
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
// Copyright (c) 2022 The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef BITCOIN_UTIL_DESIGNATOR_H
|
||||
#define BITCOIN_UTIL_DESIGNATOR_H
|
||||
|
||||
/**
|
||||
* Designated initializers can be used to avoid ordering mishaps in aggregate
|
||||
* initialization. However, they do not prevent uninitialized members. The
|
||||
* checks can be disabled by defining DISABLE_DESIGNATED_INITIALIZER_ERRORS.
|
||||
* This should only be needed on MSVC 2019. MSVC 2022 supports them with the
|
||||
* option "/std:c++20"
|
||||
*/
|
||||
#ifndef DISABLE_DESIGNATED_INITIALIZER_ERRORS
|
||||
#define Desig(field_name) .field_name =
|
||||
#else
|
||||
#define Desig(field_name)
|
||||
#endif
|
||||
|
||||
#endif // BITCOIN_UTIL_DESIGNATOR_H
|
||||
Reference in New Issue
Block a user