aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-08-20 10:51:18 +0200
committerWladimir J. van der Laan <[email protected]>2014-08-20 10:51:18 +0200
commit9b6d4c5cdc1ad7b12b8b7ba05125dad9ba2d396e (patch)
treeb01df59917737742391c04a1cd6425b361afd4c1 /src
parentRemove print() from core functions (diff)
downloaddiscoin-9b6d4c5cdc1ad7b12b8b7ba05125dad9ba2d396e.tar.xz
discoin-9b6d4c5cdc1ad7b12b8b7ba05125dad9ba2d396e.zip
Move strprintf define to tinyformat.h
This avoids a dependency on util.h if just tinyformat is needed.
Diffstat (limited to 'src')
-rw-r--r--src/core.cpp2
-rw-r--r--src/tinyformat.h2
-rw-r--r--src/util.h1
3 files changed, 3 insertions, 2 deletions
diff --git a/src/core.cpp b/src/core.cpp
index 2a5e2a372..71d6fea61 100644
--- a/src/core.cpp
+++ b/src/core.cpp
@@ -5,7 +5,7 @@
#include "core.h"
-#include "util.h"
+#include "tinyformat.h"
std::string COutPoint::ToString() const
{
diff --git a/src/tinyformat.h b/src/tinyformat.h
index b6113029f..929cb66e4 100644
--- a/src/tinyformat.h
+++ b/src/tinyformat.h
@@ -1007,4 +1007,6 @@ TINYFORMAT_WRAP_FORMAT_N(16, returnType, funcName, funcDeclSuffix, bodyPrefix, s
} // namespace tinyformat
+#define strprintf tfm::format
+
#endif // TINYFORMAT_H_INCLUDED
diff --git a/src/util.h b/src/util.h
index db2005337..1fb42a7b7 100644
--- a/src/util.h
+++ b/src/util.h
@@ -108,7 +108,6 @@ bool LogAcceptCategory(const char* category);
/* Send a string to the log output */
int LogPrintStr(const std::string &str);
-#define strprintf tfm::format
#define LogPrintf(...) LogPrint(NULL, __VA_ARGS__)
/* When we switch to C++11, this can be switched to variadic templates instead