From 5aa1128e97632e8770965f8cffc308351fde68a8 Mon Sep 17 00:00:00 2001 From: oni-link Date: Tue, 1 Apr 2014 13:03:17 +0200 Subject: remove HAVE_STRERROR strerror is a C99 standard function. --- src/vim.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/vim.h b/src/vim.h index c408b7ce07..b7ccf4289a 100644 --- a/src/vim.h +++ b/src/vim.h @@ -1093,13 +1093,8 @@ typedef enum { /* Prefer using emsg3(), because perror() may send the output to the wrong * destination and mess up the screen. */ -#ifdef HAVE_STRERROR -# define PERROR(msg) (void)emsg3((char_u *)"%s: %s", \ - (char_u *)msg, (char_u *)strerror( \ - errno)) -#else -# define PERROR(msg) perror(msg) -#endif +#define PERROR(msg) \ + (void) emsg3((char_u *) "%s: %s", (char_u *)msg, (char_u *)strerror(errno)) typedef long linenr_T; /* line number type */ typedef int colnr_T; /* column number type */ -- cgit