Permalink
Browse files

Don't include znc.h in Listener.h

znc.h pulls in most headers, Socket.h pulls in way less headers. This should
speed up compiles by 0.0000000314%.

The rest of this is compile fixes for stuff which assumed that Listener.h
includes znc.h for them. :-)

Signed-off-by: Uli Schlachter <psychon@znc.in>
  • Loading branch information...
1 parent d2f3b8c commit ca36887ddf80c193bb3ae9c6b777f9adec429d1c @psychon psychon committed Apr 2, 2011
Showing with 3 additions and 1 deletion.
  1. +1 −0 Listener.cpp
  2. +1 −1 Listener.h
  3. +1 −0 modules/certauth.cpp
View
1 Listener.cpp
@@ -7,6 +7,7 @@
*/
#include "Listener.h"
+#include "znc.h"
CListener::~CListener() {
if (m_pListener)
View
2 Listener.h
@@ -10,7 +10,7 @@
#define _LISTENER_H
#include "zncconfig.h"
-#include "znc.h"
+#include "Socket.h"
// Forward Declarations
class CRealListener;
View
1 modules/certauth.cpp
@@ -11,6 +11,7 @@
#include "Modules.h"
#include "User.h"
#include "Listener.h"
+#include "znc.h"
class CSSLClientCertMod : public CGlobalModule {
public:

0 comments on commit ca36887

Please sign in to comment.