changeset 608:1dbd290981a9 draft

Only include init.h when we have to
author Jordan Lewis <jordanthelewis@gmail.com>
date Sun, 15 May 2011 16:52:31 -0500
parents 92e329774c81
children a75f7da5c78c
files src/headers.h src/init.cpp src/main.cpp src/net.cpp src/rpc.cpp
diffstat 5 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/headers.h
+++ b/src/headers.h
@@ -125,7 +125,6 @@
 #else
 #include "noui.h"
 #endif
-#include "init.h"
 
 #ifdef GUI
 #include "xpm/addressbook16.xpm"
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -5,6 +5,7 @@
 #include "db.h"
 #include "rpc.h"
 #include "net.h"
+#include "init.h"
 
 using namespace std;
 using namespace boost;
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,6 +4,7 @@
 #include "headers.h"
 #include "db.h"
 #include "net.h"
+#include "init.h"
 #include "cryptopp/sha.h"
 
 using namespace std;
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -6,6 +6,7 @@
 #include "irc.h"
 #include "db.h"
 #include "net.h"
+#include "init.h"
 
 #ifdef USE_UPNP
 #include <miniupnpc/miniwget.h>
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -6,6 +6,7 @@
 #include "cryptopp/sha.h"
 #include "db.h"
 #include "net.h"
+#include "init.h"
 #undef printf
 #include <boost/asio.hpp>
 #include <boost/iostreams/concepts.hpp>