summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-12 15:43:58 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-12 15:43:58 -0500
commitef3adb5fe0b91cfd7d74eab7275356aa49de7120 (patch)
tree1f0ddb68164d1bc3ee4f2ad693ae51eabe9c029a /src/utils.h
parentbfd9ecf2af079894f95bac365818c9548f561039 (diff)
downloadfork-ledger-ef3adb5fe0b91cfd7d74eab7275356aa49de7120.tar.gz
fork-ledger-ef3adb5fe0b91cfd7d74eab7275356aa49de7120.tar.bz2
fork-ledger-ef3adb5fe0b91cfd7d74eab7275356aa49de7120.zip
Move a typedef in utils.h
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.h b/src/utils.h
index f0a165c2..1ea78620 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -72,7 +72,11 @@
namespace ledger {
using namespace boost;
+#if defined(VERIFY_ON) || defined(HAVE_BOOST_PYTHON)
class string;
+#else
+ typedef std::string string;
+#endif
typedef std::list<string> strings_list;
@@ -255,10 +259,6 @@ inline bool operator!=(const char* __lhs, const string& __rhs)
inline bool operator!=(const string& __lhs, const char* __rhs)
{ return __lhs.compare(__rhs) != 0; }
-#else // defined(VERIFY_ON) || defined(HAVE_BOOST_PYTHON)
-
-typedef std::string string;
-
#endif // defined(VERIFY_ON) || defined(HAVE_BOOST_PYTHON)
extern string empty_string;