changeset 604:cc067211b6da draft

Only include irc.h when needed
author Jordan Lewis <jordanthelewis@gmail.com>
date Sat, 14 May 2011 14:30:15 -0500
parents f83c3f7f3077
children 1ae81ad9b0e5
files src/headers.h src/irc.cpp src/net.cpp
diffstat 3 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/headers.h
+++ b/src/headers.h
@@ -120,7 +120,6 @@
 #include "script.h"
 #include "db.h"
 #include "net.h"
-#include "irc.h"
 #include "main.h"
 #include "rpc.h"
 #ifdef GUI
--- a/src/irc.cpp
+++ b/src/irc.cpp
@@ -3,6 +3,7 @@
 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
 
 #include "headers.h"
+#include "irc.h"
 
 using namespace std;
 using namespace boost;
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -3,6 +3,7 @@
 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
 
 #include "headers.h"
+#include "irc.h"
 
 #ifdef USE_UPNP
 #include <miniupnpc/miniwget.h>