Browse Source

Only include db.h when we have to.

0.8
Jordan Lewis 14 years ago
parent
commit
1512d5ce64
  1. 1
      src/db.cpp
  2. 1
      src/headers.h
  3. 1
      src/init.cpp
  4. 1
      src/main.cpp
  5. 3
      src/main.h
  6. 1
      src/net.cpp
  7. 1
      src/rpc.cpp

1
src/db.cpp

@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h"
#include "db.h"
using namespace std;
using namespace boost;

1
src/headers.h

@ -118,7 +118,6 @@ @@ -118,7 +118,6 @@
#include "bignum.h"
#include "base58.h"
#include "script.h"
#include "db.h"
#include "net.h"
#include "main.h"
#include "rpc.h"

1
src/init.cpp

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h"
#include "db.h"
using namespace std;
using namespace boost;

1
src/main.cpp

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h"
#include "db.h"
#include "cryptopp/sha.h"
using namespace std;

3
src/main.h

@ -77,6 +77,9 @@ extern int fUseUPnP; @@ -77,6 +77,9 @@ extern int fUseUPnP;
class CReserveKey;
class CTxDB;
class CTxIndex;
bool CheckDiskSpace(uint64 nAdditionalBytes=0);

1
src/net.cpp

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
#include "headers.h"
#include "irc.h"
#include "db.h"
#ifdef USE_UPNP
#include <miniupnpc/miniwget.h>

1
src/rpc.cpp

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
#include "headers.h"
#include "cryptopp/sha.h"
#include "db.h"
#undef printf
#include <boost/asio.hpp>
#include <boost/iostreams/concepts.hpp>

Loading…
Cancel
Save