Put conditional S_ISDIR definition(s) into pyport.h.

This commit is contained in:
Martin v. Löwis 2001-08-08 10:28:06 +00:00
parent e00dde2087
commit f9836ba4fe
4 changed files with 14 additions and 14 deletions

View file

@ -5,7 +5,6 @@
#include "osdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#if HAVE_UNISTD_H
@ -138,14 +137,6 @@ reduce(char *dir)
}
#ifndef S_ISREG
#define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
#endif
#ifndef S_ISDIR
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
#endif
static int
isfile(char *filename) /* Is file, not directory */
{