diff options
Diffstat (limited to 'util/system/error.cpp')
-rw-r--r-- | util/system/error.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/error.cpp b/util/system/error.cpp index f778ec42cb..0cbe9fe63e 100644 --- a/util/system/error.cpp +++ b/util/system/error.cpp @@ -16,14 +16,14 @@ #include <unistd.h> #endif -void ClearLastSystemError() { -#if defined(_win_) - SetLastError(0); +void ClearLastSystemError() { +#if defined(_win_) + SetLastError(0); #else errno = 0; -#endif -} - +#endif +} + int LastSystemError() { #if defined(_win_) int ret = GetLastError(); |