aboutsummaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authoroni-link <knil.ino@gmail.com>2014-04-01 13:03:17 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-02 18:52:16 -0300
commit5aa1128e97632e8770965f8cffc308351fde68a8 (patch)
tree94561de82dd968c869f7ad727e7c71a564022b9f /src/vim.h
parente38266a3dd5139f4c70c646e4ac1d926180b9328 (diff)
downloadrneovim-5aa1128e97632e8770965f8cffc308351fde68a8.tar.gz
rneovim-5aa1128e97632e8770965f8cffc308351fde68a8.tar.bz2
rneovim-5aa1128e97632e8770965f8cffc308351fde68a8.zip
remove HAVE_STRERROR
strerror is a C99 standard function.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h9
1 files changed, 2 insertions, 7 deletions
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 */