summaryrefslogtreecommitdiff
path: root/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'debug.cc')
-rw-r--r--debug.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/debug.cc b/debug.cc
index b3b140bc..9b98b1f4 100644
--- a/debug.cc
+++ b/debug.cc
@@ -1,11 +1,17 @@
+#ifdef USE_PCH
+#include "pch.h"
+#else
#include "debug.h"
+#endif
#ifdef DEBUG_ENABLED
+#ifndef USE_PCH
#include <map>
#include <fstream>
#include <unistd.h> // for the `write' method
+#endif
int offset = 0;
@@ -113,7 +119,9 @@ static struct init_streams {
#if DEBUG_LEVEL >= BETA
+#ifndef USE_PCH
#include <string>
+#endif
void debug_assert(const std::string& reason,
const std::string& file,