summaryrefslogtreecommitdiff
path: root/src/system.hh.in
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-14 21:36:42 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-14 21:44:00 -0600
commitf4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch)
treeeca9ca6ceca001209fb93c05b52e21031280d18c /src/system.hh.in
parent96172669053bbba7263a370f109f70615049a0c6 (diff)
downloadfork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip
Switch to using Boost.Format
Diffstat (limited to 'src/system.hh.in')
-rw-r--r--src/system.hh.in17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/system.hh.in b/src/system.hh.in
index 552a591a..8b8fef7f 100644
--- a/src/system.hh.in
+++ b/src/system.hh.in
@@ -117,12 +117,6 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <sys/types.h>
#include <sys/wait.h>
#endif
-#if defined(HAVE_GETTEXT)
-#include "gettext.h"
-#define _(str) gettext(str)
-#else
-#define _(str) str
-#endif
#include <gmp.h>
#include <mpfr.h>
@@ -152,6 +146,8 @@ typedef std::ostream::pos_type ostream_pos_type;
#if !(defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)
#include <boost/foreach.hpp>
#endif
+
+#include <boost/format.hpp>
#include <boost/function.hpp>
#include <boost/graph/adjacency_list.hpp>
@@ -193,6 +189,15 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/variant.hpp>
#include <boost/version.hpp>
+#if defined(HAVE_GETTEXT)
+#include "gettext.h"
+#define _(str) gettext(str)
+#define _f(str) boost::format(gettext(str))
+#else
+#define _(str) str
+#define _f(str) boost::format(str)
+#endif
+
#if defined(HAVE_BOOST_SERIALIZATION)
#include <boost/archive/binary_iarchive.hpp>