From 8d17f506005645a540111bccf921c2d72fa3f160 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 5 Aug 2011 15:02:04 +0200 Subject: [PATCH] Include zncconfig.h in all headers The rule is that zncconfig.h must be the very same thing that is included. We cheat and only include it in headers (so that modules dont have to have be changed). However, it looks like some modules where missed. This commit fixes test/ConfigTest which crashed if _GLIBCXX_DEBUG was enabled (--enable-debug) because it didn't see this define before including a c++ header. Signed-off-by: Uli Schlachter --- Config.h | 1 + ExecSock.h | 1 + ZNCDebug.h | 1 + 3 files changed, 3 insertions(+) diff --git a/Config.h b/Config.h index 30f20f99..e9e846b6 100644 --- a/Config.h +++ b/Config.h @@ -9,6 +9,7 @@ #ifndef CONFIG_H #define CONFIG_H +#include "zncconfig.h" #include "ZNCString.h" class CFile; diff --git a/ExecSock.h b/ExecSock.h index 793daa6d..701658ad 100644 --- a/ExecSock.h +++ b/ExecSock.h @@ -9,6 +9,7 @@ #ifndef EXEC_SOCK_H #define EXEC_SOCK_H +#include "zncconfig.h" #include "Socket.h" #include diff --git a/ZNCDebug.h b/ZNCDebug.h index 83c17fec..4a9682ca 100644 --- a/ZNCDebug.h +++ b/ZNCDebug.h @@ -9,6 +9,7 @@ #ifndef ZNCDEBUG_H #define ZNCDEBUG_H +#include "zncconfig.h" #include using std::cout;