Browse Source

fix header include groups

0.13
Philip Kaufmann 10 years ago committed by Cory Fields
parent
commit
5207f33f45
  1. 3
      src/script/script.h
  2. 4
      src/serialize.h
  3. 10
      src/util.cpp

3
src/script/script.h

@ -6,6 +6,8 @@
#ifndef BITCOIN_SCRIPT_SCRIPT_H #ifndef BITCOIN_SCRIPT_SCRIPT_H
#define BITCOIN_SCRIPT_SCRIPT_H #define BITCOIN_SCRIPT_SCRIPT_H
#include "crypto/common.h"
#include <assert.h> #include <assert.h>
#include <climits> #include <climits>
#include <limits> #include <limits>
@ -14,7 +16,6 @@
#include <string.h> #include <string.h>
#include <string> #include <string>
#include <vector> #include <vector>
#include "crypto/common.h"
static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes static const unsigned int MAX_SCRIPT_ELEMENT_SIZE = 520; // bytes

4
src/serialize.h

@ -6,6 +6,8 @@
#ifndef BITCOIN_SERIALIZE_H #ifndef BITCOIN_SERIALIZE_H
#define BITCOIN_SERIALIZE_H #define BITCOIN_SERIALIZE_H
#include "compat/endian.h"
#include <algorithm> #include <algorithm>
#include <assert.h> #include <assert.h>
#include <ios> #include <ios>
@ -18,8 +20,6 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "compat/endian.h"
class CScript; class CScript;
static const unsigned int MAX_SIZE = 0x02000000; static const unsigned int MAX_SIZE = 0x02000000;

10
src/util.cpp

@ -7,11 +7,6 @@
#include "config/bitcoin-config.h" #include "config/bitcoin-config.h"
#endif #endif
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
#include <pthread.h>
#include <pthread_np.h>
#endif
#include "util.h" #include "util.h"
#include "chainparamsbase.h" #include "chainparamsbase.h"
@ -23,6 +18,11 @@
#include <stdarg.h> #include <stdarg.h>
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
#include <pthread.h>
#include <pthread_np.h>
#endif
#ifndef WIN32 #ifndef WIN32
// for posix_fallocate // for posix_fallocate
#ifdef __linux__ #ifdef __linux__

Loading…
Cancel
Save