Skip to content

Commit 5207f33

Browse files
Philip Kaufmanntheuni
authored andcommitted
fix header include groups
1 parent 59b149f commit 5207f33

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/script/script.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef BITCOIN_SCRIPT_SCRIPT_H
77
#define BITCOIN_SCRIPT_SCRIPT_H
88

9+
#include "crypto/common.h"
10+
911
#include <assert.h>
1012
#include <climits>
1113
#include <limits>
@@ -14,7 +16,6 @@
1416
#include <string.h>
1517
#include <string>
1618
#include <vector>
17-
#include "crypto/common.h"
1819

1920
static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes
2021

src/serialize.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#ifndef BITCOIN_SERIALIZE_H
77
#define BITCOIN_SERIALIZE_H
88

9+
#include "compat/endian.h"
10+
911
#include <algorithm>
1012
#include <assert.h>
1113
#include <ios>
@@ -18,8 +20,6 @@
1820
#include <utility>
1921
#include <vector>
2022

21-
#include "compat/endian.h"
22-
2323
class CScript;
2424

2525
static const unsigned int MAX_SIZE = 0x02000000;

src/util.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
#include "config/bitcoin-config.h"
88
#endif
99

10-
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
11-
#include <pthread.h>
12-
#include <pthread_np.h>
13-
#endif
14-
1510
#include "util.h"
1611

1712
#include "chainparamsbase.h"
@@ -23,6 +18,11 @@
2318

2419
#include <stdarg.h>
2520

21+
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
22+
#include <pthread.h>
23+
#include <pthread_np.h>
24+
#endif
25+
2626
#ifndef WIN32
2727
// for posix_fallocate
2828
#ifdef __linux__

0 commit comments

Comments
 (0)