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

This commit is contained in:
Guido van Rossum 1997-12-05 21:45:29 +00:00
parent 60aff2c0a6
commit 595d7ba069
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,11 @@ PERFORMANCE OF THIS SOFTWARE.
#include <sys/types.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
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif