1
0
forked from aniani/vim

patch 7.4.1098

Problem:    Still using old style C function declarations.
Solution:   Always define __ARGS() to include types.  Turn a few functions
            into ANSI style to find out if this causes problems for anyone.
This commit is contained in:
Bram Moolenaar
2016-01-15 21:23:22 +01:00
parent 345efa013d
commit b7604cc19f
5 changed files with 21 additions and 55 deletions

View File

@@ -75,13 +75,7 @@
#endif
#ifndef __ARGS
/* The AIX VisualAge cc compiler defines __EXTENDED__ instead of __STDC__
* because it includes pre-ansi features. */
# if defined(__STDC__) || defined(__GNUC__) || defined(__EXTENDED__)
# define __ARGS(x) x
# else
# define __ARGS(x) ()
# endif
# define __ARGS(x) x
#endif
/* always use unlink() to remove files */
@@ -181,10 +175,6 @@
# include <pwd.h>
#endif
#ifdef __COHERENT__
# undef __ARGS
#endif
#if (defined(HAVE_SYS_RESOURCE_H) && defined(HAVE_GETRLIMIT)) \
|| (defined(HAVE_SYS_SYSINFO_H) && defined(HAVE_SYSINFO)) \
|| defined(HAVE_SYSCTL) || defined(HAVE_SYSCONF)