mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Put conditional S_ISDIR definition(s) into pyport.h.
This commit is contained in:
parent
e00dde2087
commit
f9836ba4fe
4 changed files with 14 additions and 14 deletions
|
@ -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 */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue