diff options
author | Max Kellermann <max@duempel.org> | 2014-12-05 00:16:24 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-05 00:19:07 +0100 |
commit | 08bf4f74a99cb542a20e18b896b8565f6bf1f37a (patch) | |
tree | 1bb456a97ed3898eac726270ca9685a4640e1266 /src/system/FatalError.hxx | |
parent | a838a03412b7d77cc953c2ec617aa09510f91de8 (diff) | |
download | mpd-08bf4f74a99cb542a20e18b896b8565f6bf1f37a.tar.gz mpd-08bf4f74a99cb542a20e18b896b8565f6bf1f37a.tar.xz mpd-08bf4f74a99cb542a20e18b896b8565f6bf1f37a.zip |
system/FatalError: add FatalSystemError() overload with WIN32 error code
Diffstat (limited to '')
-rw-r--r-- | src/system/FatalError.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/system/FatalError.hxx b/src/system/FatalError.hxx index d4698b3d9..2cf693bc3 100644 --- a/src/system/FatalError.hxx +++ b/src/system/FatalError.hxx @@ -23,6 +23,10 @@ #include "check.h" #include "Compiler.h" +#ifdef WIN32 +#include <windef.h> +#endif + class Error; /** @@ -53,6 +57,14 @@ gcc_noreturn void FatalSystemError(const char *msg); +#ifdef WIN32 + +gcc_noreturn +void +FatalSystemError(const char *msg, DWORD code); + +#endif + gcc_noreturn void FormatFatalSystemError(const char *fmt, ...); |