Mercurial > vim
comparison src/os_unix.h @ 14509:80f715651c4c v8.1.0268
patch 8.1.0268: file type checking has too many #ifdef
commit https://github.com/vim/vim/commit/d569bb029983cff947dce704e6f830276204c13f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 11 13:57:20 2018 +0200
patch 8.1.0268: file type checking has too many #ifdef
Problem: File type checking has too many #ifdef.
Solution: Always define the S_IF macros. (Ken Takata, closes https://github.com/vim/vim/issues/3306)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 11 Aug 2018 14:00:05 +0200 |
parents | 65c29bd4548b |
children | 54d2905bd5ab |
comparison
equal
deleted
inserted
replaced
14508:7336a81d18c4 | 14509:80f715651c4c |
---|---|
456 # endif | 456 # endif |
457 # define mch_setenv(name, val, x) setenv(name, val, x) | 457 # define mch_setenv(name, val, x) setenv(name, val, x) |
458 # endif | 458 # endif |
459 #endif | 459 #endif |
460 | 460 |
461 #if !defined(S_ISDIR) && defined(S_IFDIR) | |
462 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) | |
463 #endif | |
464 #if !defined(S_ISREG) && defined(S_IFREG) | |
465 # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) | |
466 #endif | |
467 #if !defined(S_ISBLK) && defined(S_IFBLK) | |
468 # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) | |
469 #endif | |
470 #if !defined(S_ISSOCK) && defined(S_IFSOCK) | |
471 # define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) | |
472 #endif | |
473 #if !defined(S_ISFIFO) && defined(S_IFIFO) | |
474 # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) | |
475 #endif | |
476 #if !defined(S_ISCHR) && defined(S_IFCHR) | |
477 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) | |
478 #endif | |
479 | |
480 /* Note: Some systems need both string.h and strings.h (Savage). However, | 461 /* Note: Some systems need both string.h and strings.h (Savage). However, |
481 * some systems can't handle both, only use string.h in that case. */ | 462 * some systems can't handle both, only use string.h in that case. */ |
482 #ifdef HAVE_STRING_H | 463 #ifdef HAVE_STRING_H |
483 # include <string.h> | 464 # include <string.h> |
484 #endif | 465 #endif |