diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-01-15 21:23:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-01-15 21:23:22 +0100 |
commit | b7604cc19fa1db6a8182546bf662aa13d4574d7a (patch) | |
tree | ffe7fbd91b4a41762befb992d16751da60676622 /src/os_unix.h | |
parent | 345efa013dc6d1754ba06e5596a26c48c9935937 (diff) | |
download | vim-git-b7604cc19fa1db6a8182546bf662aa13d4574d7a.tar.gz |
patch 7.4.1098v7.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.
Diffstat (limited to 'src/os_unix.h')
-rw-r--r-- | src/os_unix.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/os_unix.h b/src/os_unix.h index 0dd75cf7f..4504cce06 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -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) |