Kaydet (Commit) 595d7ba0 authored tarafından Guido van Rossum's avatar Guido van Rossum

Jeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2.

üst 60aff2c0
...@@ -58,6 +58,11 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -58,6 +58,11 @@ PERFORMANCE OF THIS SOFTWARE.
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#if defined(PYCC_VACPP)
/* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */
#define S_IFMT (S_IFDIR|S_IFCHR|S_IFREG)
#endif
#ifndef S_ISDIR #ifndef S_ISDIR
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment