diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/format.h | 5 | ||||
-rw-r--r-- | src/stream.cc | 6 | ||||
-rw-r--r-- | src/system.hh | 27 |
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 |