diff options
author | Jim Meyering <jim@meyering.net> | 2004-06-19 12:26:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-06-19 12:26:53 +0000 |
commit | 77e4428e58ebc910bc125c56c7a896e286163900 (patch) | |
tree | a7a1cd30e1ce98d98ff204f19976567ca42f4fb6 /lib/isdir.c | |
parent | 8836ff8b3ca95c312d0b8a69333575f246568e9e (diff) | |
download | coreutils-77e4428e58ebc910bc125c56c7a896e286163900.tar.xz |
Remove all S_IS* and S_IF* definitions.
Instead, just include "stat-macros.h".
Diffstat (limited to 'lib/isdir.c')
-rw-r--r-- | lib/isdir.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/isdir.c b/lib/isdir.c index 01cf8d5e4..9f18b01bc 100644 --- a/lib/isdir.c +++ b/lib/isdir.c @@ -1,5 +1,5 @@ /* isdir.c -- determine whether a directory exists - Copyright (C) 1990, 1998 Free Software Foundation, Inc. + Copyright (C) 1990, 1998, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,14 +21,7 @@ #include <sys/types.h> #include <sys/stat.h> - -#if STAT_MACROS_BROKEN -# undef S_ISDIR -#endif - -#if !defined S_ISDIR && defined S_IFDIR -# define S_ISDIR(Mode) (((Mode) & S_IFMT) == S_IFDIR) -#endif +#include "stat-macros.h" /* If PATH is an existing directory or symbolic link to a directory, return nonzero, else 0. */ |