diff options
author | Raymond Hettinger <python@rcn.com> | 2013-06-23 22:47:03 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-06-23 22:47:03 (GMT) |
commit | b4f39eea497fc5374835efb70261a3dc9211e810 (patch) | |
tree | 95c32e23b00e8c1d87f730d8a557040b50c1edd0 /Include/pyport.h | |
parent | 20b0f87e1d031390f5b65e28b0026c42f53abe5d (diff) | |
parent | 5b2f18411b49b27ce2f36e567b0096f6e50de562 (diff) | |
download | cpython-b4f39eea497fc5374835efb70261a3dc9211e810.zip cpython-b4f39eea497fc5374835efb70261a3dc9211e810.tar.gz cpython-b4f39eea497fc5374835efb70261a3dc9211e810.tar.bz2 |
merge
Diffstat (limited to 'Include/pyport.h')
-rw-r--r-- | Include/pyport.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 4b9c238..f16cce9 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -393,9 +393,15 @@ typedef size_t Py_uhash_t; #include <stat.h> #endif -#if defined(PYCC_VACPP) +#ifndef S_IFMT /* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */ -#define S_IFMT (S_IFDIR|S_IFCHR|S_IFREG) +#define S_IFMT 0170000 +#endif + +#ifndef S_IFLNK +/* Windows doesn't define S_IFLNK but posixmodule.c maps + * IO_REPARSE_TAG_SYMLINK to S_IFLNK */ +# define S_IFLNK 0120000 #endif #ifndef S_ISREG @@ -410,11 +416,6 @@ typedef size_t Py_uhash_t; #define S_ISCHR(x) (((x) & S_IFMT) == S_IFCHR) #endif -#ifndef S_ISBLK -#define S_ISBLK(x) (((x) & S_IFMT) == S_IFBLK) -#endif - - #ifdef __cplusplus /* Move this down here since some C++ #include's don't like to be included inside an extern "C" */ |