From 4418103963cca2b68fd2dbf6d1d16eeebc8b3c40 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 10 Dec 2012 21:49:46 +0200 Subject: [PATCH 1/1] Fix Windows compilation --- source/core/systemerror.cpp | 2 +- source/strings/utils.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.43.0