system/FatalError: add FatalSystemError() overload with WIN32 error code

This commit is contained in:
Max Kellermann
2014-12-05 00:16:24 +01:00
parent a838a03412
commit 08bf4f74a9
2 changed files with 30 additions and 10 deletions

View File

@@ -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, ...);