summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornia <nia@netbsd.org>2019-05-06 15:53:22 +0100
committerPeter Powell <petpow@saberuk.com>2019-05-06 16:47:25 +0100
commit3bbf251efa501af7cc452031a4c6d824158b64a8 (patch)
treec7b70f7ae2e007814295134aea77a4dd7a89227e /src
parentdaf3be301d0181d14d1310b3ab5f79c8a85dfb46 (diff)
Re-order the includes to fix C++03 builds.
inspircd.h defines __STDC_LIMIT_MACROS to ensure that C99 int type limits are defined, however, if <stdint.h> is included implicitly before inspircd.h, the build fails due to the C99 integer type limits being undefined.
Diffstat (limited to 'src')
-rw-r--r--src/modules.cpp2
-rw-r--r--src/server.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 952c115d2..67ebc3439 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -24,9 +24,9 @@
*/
-#include <iostream>
#include "inspircd.h"
#include "exitcodes.h"
+#include <iostream>
#ifndef _WIN32
#include <dirent.h>
diff --git a/src/server.cpp b/src/server.cpp
index ff8f6211f..f2abfe0e2 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -20,9 +20,9 @@
*/
-#include <signal.h>
-#include "exitcodes.h"
#include "inspircd.h"
+#include "exitcodes.h"
+#include <signal.h>
void InspIRCd::SignalHandler(int signal)
{