mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Prints also the Windows GetLastError() in strerror().
This commit is contained in:
parent
9d4f988f95
commit
a85aa08276
4 changed files with 40 additions and 3 deletions
6
mingw.h
6
mingw.h
|
|
@ -68,6 +68,7 @@
|
|||
#define readlink windows_readlink
|
||||
#define symlink windows_symlink
|
||||
#define link windows_link
|
||||
#define strerror windows_strerror
|
||||
|
||||
/* We have nano second support */
|
||||
#define STAT_NSEC(st) (st)->st_mtimensec
|
||||
|
|
@ -250,6 +251,11 @@ int windows_symlink(const char* existing, const char* file);
|
|||
*/
|
||||
int windows_link(const char* existing, const char* file);
|
||||
|
||||
/**
|
||||
* Like strerror().
|
||||
*/
|
||||
const char* windows_strerror(int err);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue