summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-01-28 22:25:46 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-01-28 22:25:46 +0900
commit25243da03917b7e36a96a3d28bf99cb578501602 (patch)
tree32e6f3def966075c1287a4fbc27ed3a6fd060e9f /src/util.h
parentad6d799b98582250aad50db96519fc7242f6e88a (diff)
mingw: Add formatLastError as wrapper function for FormatMessage
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index e7ebb816..fe802af4 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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