mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
vim-patch:8.1.0268: file type checking has too many #ifdef (#13182)
Problem: File type checking has too many #ifdef.
Solution: Always define the S_IF macros. (Ken Takata, closes vim/vim#3306)
d569bb0299
This commit is contained in:
@@ -459,7 +459,7 @@ staterr:
|
||||
|
||||
int i;
|
||||
// if filename is a directory, append the cscope database name to it
|
||||
if ((file_info.stat.st_mode & S_IFMT) == S_IFDIR) {
|
||||
if (S_ISDIR(file_info.stat.st_mode)) {
|
||||
fname2 = (char *)xmalloc(strlen(CSCOPE_DBFILE) + strlen(fname) + 2);
|
||||
|
||||
while (fname[strlen(fname)-1] == '/'
|
||||
|
Reference in New Issue
Block a user