1
0
forked from aniani/vim

patch 7.4.2080

Problem:    When using PERROR() on some systems assert_fails() does not see
            the error.
Solution:   Make PERROR() always report the error.
This commit is contained in:
Bram Moolenaar
2016-07-20 00:10:51 +02:00
parent 53bdec2ac9
commit b869c0da31
4 changed files with 19 additions and 1 deletions

View File

@@ -1652,7 +1652,7 @@ typedef UINT32_TYPEDEF UINT32_T;
#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)
# define PERROR(msg) do_perror(msg)
#endif
typedef long linenr_T; /* line number type */