00001 #ifndef _MSC_VER // [
00002 #error "Use this header only with Microsoft Visual C++ compilers!"
00003 #endif // _MSC_VER ]
00004
00005 #ifndef _MS_STAT_H_
00006 #define _MS_STAT_H_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif
00011
00012 #include <sys/stat.h>
00013
00014
00015 #define __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask))
00016
00017 #define S_ISDIR(mode) __S_ISTYPE((mode), S_IFDIR)
00018 #define S_ISCHR(mode) __S_ISTYPE((mode), S_IFCHR)
00019 #define S_ISBLK(mode) __S_ISTYPE((mode), S_IFBLK)
00020 #define S_ISREG(mode) __S_ISTYPE((mode), S_IFREG)
00021
00022 #endif