diff options
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h index 16159e18b5..6c81abad56 100644 --- a/src/main.h +++ b/src/main.h @@ -11,6 +11,10 @@ #include "script.h" #include "db.h" +#ifdef WIN32 +#include <io.h> /* for _commit */ +#endif + #include <list> class CBlock; @@ -161,7 +165,7 @@ public: std::string ToString() const { if (IsNull()) - return strprintf("null"); + return "null"; else return strprintf("(nFile=%d, nBlockPos=%d, nTxPos=%d)", nFile, nBlockPos, nTxPos); } @@ -288,7 +292,7 @@ public: std::string ToString() const { std::string str; - str += strprintf("CTxIn("); + str += "CTxIn("; str += prevout.ToString(); if (prevout.IsNull()) str += strprintf(", coinbase %s", HexStr(scriptSig).c_str()); |