diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-01-28 22:25:46 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-01-28 22:25:46 +0900 |
| commit | 25243da03917b7e36a96a3d28bf99cb578501602 (patch) | |
| tree | 32e6f3def966075c1287a4fbc27ed3a6fd060e9f /src/util.h | |
| parent | ad6d799b98582250aad50db96519fc7242f6e88a (diff) | |
mingw: Add formatLastError as wrapper function for FormatMessage
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -855,6 +855,13 @@ bool tlsHostnameMatch(const std::string& pattern, const std::string& hostname); TLSVersion toTLSVersion(const std::string& ver); #endif // ENABLE_SSL +#ifdef __MINGW32__ +// Formats error message for error code errNum, which is the return +// value of GetLastError(). On error, this function returns empty +// string. +std::string formatLastError(int errNum); +#endif // __MINGW32__ + } // namespace util } // namespace aria2 |
