Permalink
Browse files

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 <psychon@znc.in>
  • Loading branch information...
1 parent dcf357b commit 8d17f506005645a540111bccf921c2d72fa3f160 @psychon psychon committed Aug 5, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 Config.h
  2. +1 −0 ExecSock.h
  3. +1 −0 ZNCDebug.h
View
@@ -9,6 +9,7 @@
#ifndef CONFIG_H
#define CONFIG_H
+#include "zncconfig.h"
#include "ZNCString.h"
class CFile;
View
@@ -9,6 +9,7 @@
#ifndef EXEC_SOCK_H
#define EXEC_SOCK_H
+#include "zncconfig.h"
#include "Socket.h"
#include <signal.h>
View
@@ -9,6 +9,7 @@
#ifndef ZNCDEBUG_H
#define ZNCDEBUG_H
+#include "zncconfig.h"
#include <iostream>
using std::cout;

0 comments on commit 8d17f50

Please sign in to comment.