aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2016-01-14 16:05:23 -0500
committerMichael Reed <m.reed@mykolab.com>2016-01-14 23:38:26 -0500
commit07265d221fbd3b4fd16440caab49c70d14370079 (patch)
tree07118b6756dfe5c34204112c228bb72b7f83aa11 /src/nvim/vim.h
parent24fbb2c866039d61107fa1f6a2efe86bb6951e55 (diff)
downloadrneovim-07265d221fbd3b4fd16440caab49c70d14370079.tar.gz
rneovim-07265d221fbd3b4fd16440caab49c70d14370079.tar.bz2
rneovim-07265d221fbd3b4fd16440caab49c70d14370079.zip
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 <stdio.h> and <fcntl.h>, 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.
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h12
1 files changed, 0 insertions, 12 deletions
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 <fcntl.h>
-#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)