mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Move compat/assumptions.h include to one place that actually needs it
Also add the <IWYU pragma: keep> to avoid removing it by accident.
This commit is contained in:
parent
77774110f4
commit
88887531b7
2 changed files with 3 additions and 5 deletions
|
@ -10,7 +10,6 @@
|
||||||
#include <config/bitcoin-config.h>
|
#include <config/bitcoin-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <compat/assumptions.h>
|
|
||||||
#include <compat/compat.h>
|
#include <compat/compat.h>
|
||||||
|
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
|
@ -7,7 +7,10 @@
|
||||||
#define BITCOIN_SERIALIZE_H
|
#define BITCOIN_SERIALIZE_H
|
||||||
|
|
||||||
#include <attributes.h>
|
#include <attributes.h>
|
||||||
|
#include <compat/assumptions.h> // IWYU pragma: keep
|
||||||
#include <compat/endian.h>
|
#include <compat/endian.h>
|
||||||
|
#include <prevector.h>
|
||||||
|
#include <span.h>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
@ -18,13 +21,9 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string.h>
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <prevector.h>
|
|
||||||
#include <span.h>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The maximum size of a serialized object in bytes or number of elements
|
* The maximum size of a serialized object in bytes or number of elements
|
||||||
* (for eg vectors) when the size is encoded as CompactSize.
|
* (for eg vectors) when the size is encoded as CompactSize.
|
||||||
|
|
Loading…
Add table
Reference in a new issue