X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fisdir.c;h=61e2074c549790d5dcee48db7e2ae11a7bb4f659;hb=cdceb2fe48e39f4fff25f6f4cb34bbab88c2856f;hp=0f9aec2f9cae0fe9a4c553a0e0fce3f034ecf416;hpb=57fdfd3f8ec62b105c53bcdf6f127c35c7fe7391;p=gnulib.git diff --git a/lib/isdir.c b/lib/isdir.c index 0f9aec2f9..61e2074c5 100644 --- a/lib/isdir.c +++ b/lib/isdir.c @@ -1,6 +1,6 @@ /* isdir.c -- determine whether a directory exists - Copyright (C) 1990, 1998, 2006 Free Software Foundation, Inc. + Copyright (C) 1990, 1998, 2006, 2009-2013 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 @@ -17,20 +17,13 @@ #include +#include "isdir.h" + #include #include -#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 - /* If PATH is an existing directory or symbolic link to a directory, return nonzero, else 0. */ - int isdir (const char *path) {