diff src/vim.h @ 9605:846d4bad2df7 v7.4.2080

commit https://github.com/vim/vim/commit/b869c0da31716ff14bbfd63346d140d0a1d68af7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 20 00:10:51 2016 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Wed, 20 Jul 2016 00:15:06 +0200
parents 42a8a81decdf
children 08df6ad72c56
line wrap: on
line diff
--- a/src/vim.h
+++ b/src/vim.h
@@ -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 */