comparison src/os_unix.h @ 25824:3f5f25f7d8a2 v8.2.3447

patch 8.2.3447: a couple of declarations are not ANSI C Commit: https://github.com/vim/vim/commit/d2b98ab4ecf168514ae622948e3749dea7671946 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Sep 18 12:15:08 2021 +0200 patch 8.2.3447: a couple of declarations are not ANSI C Problem: A couple of declarations are not ANSI C. Solution: Put argument type inside (). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8890)
author Bram Moolenaar <Bram@vim.org>
date Sat, 18 Sep 2021 12:30:04 +0200
parents 49d866e9b439
children 1690417aeafe
comparison
equal deleted inserted replaced
25823:6095577455c5 25824:3f5f25f7d8a2
94 #endif 94 #endif
95 95
96 #ifdef SIGHASARG 96 #ifdef SIGHASARG
97 # ifdef SIGHAS3ARGS 97 # ifdef SIGHAS3ARGS
98 # define SIGPROTOARG (int, int, struct sigcontext *) 98 # define SIGPROTOARG (int, int, struct sigcontext *)
99 # define SIGDEFARG(s) (s, sig2, scont) int s, sig2; struct sigcontext *scont; 99 # define SIGDEFARG(s) (int s, int sig2, struct sigcontext *scont)
100 # define SIGDUMMYARG 0, 0, (struct sigcontext *)0 100 # define SIGDUMMYARG 0, 0, (struct sigcontext *)0
101 # else 101 # else
102 # define SIGPROTOARG (int) 102 # define SIGPROTOARG (int)
103 # define SIGDEFARG(s) (s) int s UNUSED; 103 # define SIGDEFARG(s) (int s UNUSED)
104 # define SIGDUMMYARG 0 104 # define SIGDUMMYARG 0
105 # endif 105 # endif
106 #else 106 #else
107 # define SIGPROTOARG (void) 107 # define SIGPROTOARG (void)
108 # define SIGDEFARG(s) () 108 # define SIGDEFARG(s) ()