]> git.tdb.fi Git - libs/core.git/commitdiff
Fix Windows compilation
authorMikko Rasa <tdb@tdb.fi>
Mon, 10 Dec 2012 19:49:46 +0000 (21:49 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 10 Dec 2012 19:49:46 +0000 (21:49 +0200)
source/core/systemerror.cpp
source/strings/utils.cpp

index 8d8844a280d06da5ef81894ed64d036959f21415..1ccee74ed4a80139c77e1e013567465f4325906e 100644 (file)
@@ -32,7 +32,7 @@ string system_error::get_message(int c)
        if(FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, 0, c, 0, msg, sizeof(msg), 0))
                return msg;
        else
-               return lexical_cast(c, Fmt().hex());
+               return lexical_cast<string>(c, Fmt().hex());
 #else
        if(c==-1)
                c = errno;
index a67eb15b1f4b2b738fecc1b40bc60e7e9e3a97f3..416188ec3d574e71caaecf2fa4353eaff8f67564 100644 (file)
@@ -1,6 +1,7 @@
 #include <algorithm>
 #include <list>
 #include <stdexcept>
+#include <cctype>
 #include "utils.h"
 
 using namespace std;