diff options
author | denplusplus <[email protected]> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:34 +0300 |
commit | addb3626ed629a8c7d9c8c30e87365b478a8c266 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/system/error.cpp | |
parent | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
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 0cbe9fe63e7..f778ec42cbe 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(); |