summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-08 19:05:06 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-08 19:05:06 -0400
commite0035021931f2b645c9d107c1be6636d3b6aa544 (patch)
treea8a3cd709e29b3133f531f16dbe208f2a19cc347 /src
parent769b4ba1d0a913b23d5bb8084c0f63cbfad4625a (diff)
downloadfork-ledger-e0035021931f2b645c9d107c1be6636d3b6aa544.tar.gz
fork-ledger-e0035021931f2b645c9d107c1be6636d3b6aa544.tar.bz2
fork-ledger-e0035021931f2b645c9d107c1be6636d3b6aa544.zip
Moved several #includes to facilitate the use of pre-compiled headers.
Diffstat (limited to 'src')
-rw-r--r--src/format.h5
-rw-r--r--src/stream.cc6
-rw-r--r--src/system.hh27
3 files changed, 27 insertions, 11 deletions
diff --git a/src/format.h b/src/format.h
index 66c226b2..5c0de527 100644
--- a/src/format.h
+++ b/src/format.h
@@ -46,13 +46,8 @@
#ifndef _FORMAT_H
#define _FORMAT_H
-#define SUPPORT_UNICODE 1
-
#include "journal.h"
#include "expr.h"
-#if defined(SUPPORT_UNICODE)
-#include "utf8.h"
-#endif
namespace ledger {
diff --git a/src/stream.cc b/src/stream.cc
index 94282d2d..403e579e 100644
--- a/src/stream.cc
+++ b/src/stream.cc
@@ -31,12 +31,6 @@
#include "utils.h"
-#ifdef HAVE_UNIX_PIPES
-#include <sys/types.h>
-#include <sys/wait.h>
-#include "fdstream.h"
-#endif
-
namespace ledger {
namespace {
diff --git a/src/system.hh b/src/system.hh
index d56a1896..fdec99fe 100644
--- a/src/system.hh
+++ b/src/system.hh
@@ -129,9 +129,19 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <pwd.h>
#endif
+#ifdef HAVE_UNIX_PIPES
+#include <sys/types.h>
+#include <sys/wait.h>
+#include "fdstream.h"
+#endif
+
#include <gmp.h>
#include <mpfr.h>
#include "sha1.h"
+#define SUPPORT_UNICODE 1
+#if defined(SUPPORT_UNICODE)
+#include "utf8.h"
+#endif
#ifdef HAVE_LIBEDIT
#include <editline/readline.h>
@@ -159,4 +169,21 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/regex.hpp>
#include <boost/variant.hpp>
+#if defined(HAVE_BOOST_PYTHON)
+
+#include <boost/python.hpp>
+
+#include <Python.h>
+#include <datetime.h>
+
+#include <boost/python/exception_translator.hpp>
+#include <boost/python/implicit.hpp>
+#include <boost/python/args.hpp>
+#include <boost/python/module.hpp>
+#include <boost/python/def.hpp>
+#include <boost/python/to_python_converter.hpp>
+#include <boost/python/module_init.hpp>
+
+#endif // HAVE_BOOST_PYTHON
+
#endif // _SYSTEM_HH