diff options
Diffstat (limited to 'src/system.hh.in')
-rw-r--r-- | src/system.hh.in | 71 |
1 files changed, 26 insertions, 45 deletions
diff --git a/src/system.hh.in b/src/system.hh.in index a6c465df..95dedbc2 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -41,9 +41,7 @@ * None of these header files (with the exception of acconf.h, when * configure is re-run) are expected to change. */ - -#ifndef INCLUDED_SYSTEM_HH -#define INCLUDED_SYSTEM_HH +#pragma once //#warning("Loading system.hh. This should occur only once!") @@ -51,37 +49,27 @@ /* Application configuration */ /*------------------------------------------------------------------------*/ -#define Ledger_VERSION_MAJOR @Ledger_VERSION_MAJOR@ -#define Ledger_VERSION_MINOR @Ledger_VERSION_MINOR@ -#define Ledger_VERSION_PATCH @Ledger_VERSION_PATCH@ -#define Ledger_VERSION_PRERELEASE "@Ledger_VERSION_PRERELEASE@" -#define Ledger_VERSION_DATE @Ledger_VERSION_DATE@ - -#define HAVE_GETTEXT @HAVE_GETTEXT@ - -#cmakedefine HAVE_EDIT -#cmakedefine HAVE_GETPWUID -#cmakedefine HAVE_GETPWNAM -#cmakedefine HAVE_IOCTL -#cmakedefine HAVE_ISATTY - -#define HAVE_UNIX_PIPES @HAVE_UNIX_PIPES@ +#cmakedefine01 HAVE_GETTEXT -#define HAVE_BOOST_PYTHON @HAVE_BOOST_PYTHON@ -#define HAVE_GPGME @HAVE_GPGME@ -#define HAVE_BOOST_REGEX_UNICODE @HAVE_BOOST_REGEX_UNICODE@ -#define HAVE_BOOST_NOWIDE @HAVE_BOOST_NOWIDE@ +#cmakedefine01 HAVE_EDIT +#cmakedefine01 HAVE_GETPWUID +#cmakedefine01 HAVE_GETPWNAM +#cmakedefine01 HAVE_IOCTL +#cmakedefine01 HAVE_ISATTY -#define DEBUG_MODE @DEBUG_MODE@ -#define NO_ASSERTS @NO_ASSERTS@ +#cmakedefine01 HAVE_UNIX_PIPES -#define DOCUMENT_MODEL 0 -#define REDUCE_TO_INTEGER 0 +#cmakedefine01 HAVE_BOOST_PYTHON +#cmakedefine01 HAVE_GPGME +#cmakedefine01 HAVE_BOOST_REGEX_UNICODE +#cmakedefine01 HAVE_BOOST_NOWIDE /*------------------------------------------------------------------------*/ /* System includes */ /*------------------------------------------------------------------------*/ +#include "utf8.h" + #include <algorithm> #include <exception> #include <typeinfo> @@ -109,17 +97,19 @@ #include <cstdlib> #include <cstring> #include <csignal> +#include <cstddef> /* needed for gcc 4.9 */ #if defined(_WIN32) || defined(__CYGWIN__) #include <io.h> #else #include <unistd.h> #endif -#if defined(HAVE_GETPWUID) || defined(HAVE_GETPWNAM) + +#if HAVE_GETPWUID || HAVE_GETPWNAM #include <pwd.h> #endif -#ifdef HAVE_IOCTL +#if HAVE_IOCTL #include <sys/ioctl.h> #endif @@ -128,10 +118,16 @@ #include <sys/wait.h> #endif -#include <cstddef> /* needed for gcc 4.9 */ +#if HAVE_GETTEXT +#include <libintl.h> +#define _(str) gettext(str) +#else +#define _(str) str +#endif +#define _f(str) boost::format(_(str)) + #include <gmp.h> #include <mpfr.h> -#include "utf8.h" #include <boost/algorithm/string.hpp> #include <boost/any.hpp> @@ -194,27 +190,12 @@ #include <boost/variant.hpp> #include <boost/version.hpp> -#if HAVE_GETTEXT -#include <libintl.h> -#define _(str) gettext(str) -#else -#define _(str) str -#endif -#define _f(str) boost::format(_(str)) - #include <boost/ptr_container/ptr_deque.hpp> #if HAVE_BOOST_PYTHON - #include <boost/python.hpp> - #include <boost/python/detail/wrap_python.hpp> - #include <boost/python/module_init.hpp> #include <boost/python/suite/indexing/vector_indexing_suite.hpp> - #include <boost/iterator/indirect_iterator.hpp> - #endif // HAVE_BOOST_PYTHON - -#endif // INCLUDED_SYSTEM_HH |