mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
remove HAVE_STRERROR
strerror is a C99 standard function.
This commit is contained in:

committed by
Thiago de Arruda

parent
e38266a3dd
commit
5aa1128e97
@@ -61,7 +61,6 @@
|
|||||||
#define HAVE_SIGVEC 1
|
#define HAVE_SIGVEC 1
|
||||||
#define HAVE_ST_BLKSIZE 1
|
#define HAVE_ST_BLKSIZE 1
|
||||||
#define HAVE_STRCASECMP 1
|
#define HAVE_STRCASECMP 1
|
||||||
#define HAVE_STRERROR 1
|
|
||||||
#define HAVE_STRFTIME 1
|
#define HAVE_STRFTIME 1
|
||||||
#define HAVE_STRING_H 1
|
#define HAVE_STRING_H 1
|
||||||
#define HAVE_STRINGS_H 1
|
#define HAVE_STRINGS_H 1
|
||||||
|
@@ -1093,13 +1093,8 @@ typedef enum {
|
|||||||
|
|
||||||
/* Prefer using emsg3(), because perror() may send the output to the wrong
|
/* Prefer using emsg3(), because perror() may send the output to the wrong
|
||||||
* destination and mess up the screen. */
|
* destination and mess up the screen. */
|
||||||
#ifdef HAVE_STRERROR
|
#define PERROR(msg) \
|
||||||
# define PERROR(msg) (void)emsg3((char_u *)"%s: %s", \
|
(void) emsg3((char_u *) "%s: %s", (char_u *)msg, (char_u *)strerror(errno))
|
||||||
(char_u *)msg, (char_u *)strerror( \
|
|
||||||
errno))
|
|
||||||
#else
|
|
||||||
# define PERROR(msg) perror(msg)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef long linenr_T; /* line number type */
|
typedef long linenr_T; /* line number type */
|
||||||
typedef int colnr_T; /* column number type */
|
typedef int colnr_T; /* column number type */
|
||||||
|
Reference in New Issue
Block a user