mirror of
https://github.com/znc/znc.git
synced 2026-05-02 03:22:33 +02:00
Clean up some includes
We no longer include Csocket.h in main.h because only few files actually need it. (Only HTTPSock.h and Timers.h) We also clean up some includes in Timers.h. It didn't actually include the file it needed. Oh and this also adds a warning to main.h if PATH_MAX is undefined. If this happens, it is most likely a bug that needs to be addressed. (some missing includes, I'd guess) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1099 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
1
Client.h
1
Client.h
@@ -9,6 +9,7 @@
|
||||
#ifndef _CLIENT_H
|
||||
#define _CLIENT_H
|
||||
|
||||
#include "Csocket.h"
|
||||
#include "Utils.h"
|
||||
#include "main.h"
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#ifndef _HTTPSOCK_H
|
||||
#define _HTTPSOCK_H
|
||||
|
||||
#include "Csocket.h"
|
||||
#include "main.h"
|
||||
|
||||
class CHTTPSock : public Csock {
|
||||
|
||||
3
Timers.h
3
Timers.h
@@ -10,8 +10,7 @@
|
||||
#define _TIMERS_H
|
||||
|
||||
#include "Client.h"
|
||||
#include "Csocket.h"
|
||||
#include "FileUtils.h"
|
||||
#include "IRCSock.h"
|
||||
#include "User.h"
|
||||
|
||||
class CKeepNickTimer : public CCron {
|
||||
|
||||
Reference in New Issue
Block a user