summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-19 04:24:18 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2023-04-19 04:24:18 +0200
commitc5340f10630533d01c9703c8f19b4799700d3a52 (patch)
tree34a5b94a7e9f26ac2d120156fb305a695f21d495
parent9223f6a3e5546035cbf759b16bcaa0505c4c91b0 (diff)
downloadfork-ledger-c5340f10630533d01c9703c8f19b4799700d3a52.tar.gz
fork-ledger-c5340f10630533d01c9703c8f19b4799700d3a52.tar.bz2
fork-ledger-c5340f10630533d01c9703c8f19b4799700d3a52.zip
Reorder system.hh includes
-rw-r--r--src/system.hh.in27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index b3fc028f..95dedbc2 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -68,6 +68,8 @@
/* System includes */
/*------------------------------------------------------------------------*/
+#include "utf8.h"
+
#include <algorithm>
#include <exception>
#include <typeinfo>
@@ -95,12 +97,14 @@
#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 HAVE_GETPWUID || HAVE_GETPWNAM
#include <pwd.h>
#endif
@@ -114,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>
@@ -180,25 +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