#ifndef _MSC_VER // [ #error "Use this header only with Microsoft Visual C++ compilers!" #endif // _MSC_VER ] #ifndef _MS_STAT_H_ #define _MS_STAT_H_ #if _MSC_VER > 1000 #pragma once #endif #include /* Test macros for file types. */ #define __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask)) #define S_ISDIR(mode) __S_ISTYPE((mode), S_IFDIR) #define S_ISCHR(mode) __S_ISTYPE((mode), S_IFCHR) #define S_ISBLK(mode) __S_ISTYPE((mode), S_IFBLK) #define S_ISREG(mode) __S_ISTYPE((mode), S_IFREG) #endif