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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user