diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-11 13:57:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-11 13:57:20 +0200 |
commit | d569bb029983cff947dce704e6f830276204c13f (patch) | |
tree | 50736305a13af688a8321d0b4688042f61526362 /src/os_unix.h | |
parent | 90f1e2b7bcf56112e1535b693acf131727179a6e (diff) | |
download | vim-git-d569bb029983cff947dce704e6f830276204c13f.tar.gz |
patch 8.1.0268: file type checking has too many #ifdefv8.1.0268
Problem: File type checking has too many #ifdef.
Solution: Always define the S_IF macros. (Ken Takata, closes #3306)
Diffstat (limited to 'src/os_unix.h')
-rw-r--r-- | src/os_unix.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/os_unix.h b/src/os_unix.h index 414652924..ca2ce705a 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -458,25 +458,6 @@ int mch_rename(const char *src, const char *dest); # endif #endif -#if !defined(S_ISDIR) && defined(S_IFDIR) -# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) -#endif -#if !defined(S_ISREG) && defined(S_IFREG) -# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) -#endif -#if !defined(S_ISBLK) && defined(S_IFBLK) -# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) -#endif -#if !defined(S_ISSOCK) && defined(S_IFSOCK) -# define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) -#endif -#if !defined(S_ISFIFO) && defined(S_IFIFO) -# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) -#endif -#if !defined(S_ISCHR) && defined(S_IFCHR) -# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) -#endif - /* Note: Some systems need both string.h and strings.h (Savage). However, * some systems can't handle both, only use string.h in that case. */ #ifdef HAVE_STRING_H |