From 07265d221fbd3b4fd16440caab49c70d14370079 Mon Sep 17 00:00:00 2001 From: Michael Reed Date: Thu, 14 Jan 2016 16:05:23 -0500 Subject: Misc. macro cleanup - ROOT_UID's comment is misleading, as it's always defined to 0. - SEEK_{SET,END} & O_NOFOLLOW should already be defined on Unix-like systems in and , respectively. In any case, neither of those #ifdef blocks should be in the middle of source files. - The S_IS{LNK,DIR,...} macros should only be undefined on Windows. --- src/nvim/vim.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/nvim/vim.h') diff --git a/src/nvim/vim.h b/src/nvim/vim.h index fa00d9efcf..98ef5eb4fd 100644 --- a/src/nvim/vim.h +++ b/src/nvim/vim.h @@ -27,9 +27,6 @@ Error: configure did not run properly.Check auto/config.log. # endif #endif -/* user ID of root is usually zero, but not for everybody */ -#define ROOT_UID 0 - /* Can't use "PACKAGE" here, conflicts with a Perl include file. */ #ifndef VIMPACKAGE @@ -232,15 +229,6 @@ enum { /* Size in bytes of the hash used in the undo file. */ #define UNDO_HASH_SIZE 32 -#ifdef HAVE_FCNTL_H -# include -#endif - - -#ifndef O_NOFOLLOW -# define O_NOFOLLOW 0 -#endif - /* * defines to avoid typecasts from (char_u *) to (char *) and back * (vim_strchr() and vim_strrchr() are now in alloc.c) -- cgit