mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
os/: remove redundant define
This commit is contained in:
parent
07cc72ad5d
commit
c9a0875ea8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user