summaryrefslogtreecommitdiff
path: root/debug.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:00 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:00 -0400
commit42f43b7686038e4cbca16d8d2118b139544e6de3 (patch)
tree52c5473401c57282242d66b8dd75f4c07bf41d07 /debug.cc
parentc7b4370ff9c8ab5c96f15b1e712e6db6bdab6324 (diff)
downloadfork-ledger-42f43b7686038e4cbca16d8d2118b139544e6de3.tar.gz
fork-ledger-42f43b7686038e4cbca16d8d2118b139544e6de3.tar.bz2
fork-ledger-42f43b7686038e4cbca16d8d2118b139544e6de3.zip
Check in all changes made so far toward 3.0.
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,