You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/11/18 00:02:27 UTC
mesos git commit: Fixed Windows build.
Repository: mesos
Updated Branches:
refs/heads/master 86303ed30 -> 7b55a8e20
Fixed Windows build.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/7b55a8e2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/7b55a8e2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/7b55a8e2
Branch: refs/heads/master
Commit: 7b55a8e20f28e505daeae7e80fc068d4b995ae0b
Parents: 86303ed
Author: Michael Park <mp...@apache.org>
Authored: Thu Nov 17 16:02:09 2016 -0800
Committer: Michael Park <mp...@apache.org>
Committed: Thu Nov 17 16:02:09 2016 -0800
----------------------------------------------------------------------
3rdparty/stout/include/stout/windows/error.hpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/7b55a8e2/3rdparty/stout/include/stout/windows/error.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/windows/error.hpp b/3rdparty/stout/include/stout/windows/error.hpp
index f8a0825..2f2cbd4 100644
--- a/3rdparty/stout/include/stout/windows/error.hpp
+++ b/3rdparty/stout/include/stout/windows/error.hpp
@@ -26,6 +26,9 @@
// standard libraries, it wraps an error coming from the Windows APIs.
class WindowsErrorBase : public Error
{
+public:
+ const DWORD code;
+
protected:
explicit WindowsErrorBase(DWORD _code)
: Error(get_last_error_as_string(_code)), code(_code) {}
@@ -33,8 +36,6 @@ protected:
WindowsErrorBase(DWORD _code, const std::string& message)
: Error(message + ": " + get_last_error_as_string(_code)), code(_code) {}
- const DWORD code;
-
private:
static std::string get_last_error_as_string(DWORD errorCode)
{