Prints also the Windows GetLastError() in strerror().

This commit is contained in:
Andrea Mazzoleni 2013-04-04 19:30:24 +02:00
parent 9d4f988f95
commit a85aa08276
4 changed files with 40 additions and 3 deletions

View file

@ -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