os/: remove redundant define

This commit is contained in:
Justin M. Keyes 2019-08-13 05:48:11 +02:00
parent 07cc72ad5d
commit c9a0875ea8
2 changed files with 4 additions and 9 deletions

View File

@ -21,12 +21,6 @@ typedef struct {
uv_dirent_t ent; ///< @private The entry information.
} Directory;
/// Converts libuv error (negative int) to error description string.
#define os_strerror uv_strerror
/// Converts system error code to libuv error code.
#define os_translate_sys_error uv_translate_sys_error
// Values returned by os_nodetype()
#define NODE_NORMAL 0 // file or directory, check with os_isdir()
#define NODE_WRITABLE 1 // something we can write to (character

View File

@ -32,11 +32,12 @@
# include <strings.h>
#endif
/// Function to convert libuv error to char * error description
///
/// negative libuv error codes are returned by a number of os functions.
/// Converts libuv error (negative int) to error description string.
#define os_strerror uv_strerror
/// Converts system error code to libuv error code.
#define os_translate_sys_error uv_translate_sys_error
#ifdef WIN32
# define os_strtok strtok_s
#else