From: Mikko Rasa Date: Mon, 10 Dec 2012 19:49:46 +0000 (+0200) Subject: Fix Windows compilation X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=4418103963cca2b68fd2dbf6d1d16eeebc8b3c40;hp=83394a2b0535da86930c2d9d07fb9f997d3f0e57 Fix Windows compilation --- diff --git a/source/core/systemerror.cpp b/source/core/systemerror.cpp index 8d8844a..1ccee74 100644 --- a/source/core/systemerror.cpp +++ b/source/core/systemerror.cpp @@ -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(c, Fmt().hex()); #else if(c==-1) c = errno; diff --git a/source/strings/utils.cpp b/source/strings/utils.cpp index a67eb15..416188e 100644 --- a/source/strings/utils.cpp +++ b/source/strings/utils.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include "utils.h" using namespace std;