ms_stat.h
Go to the documentation of this file.
1 #ifndef _MSC_VER // [
2 #error "Use this header only with Microsoft Visual C++ compilers!"
3 #endif // _MSC_VER ]
4 
5 #ifndef _MS_STAT_H_
6 #define _MS_STAT_H_
7 
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif
11 
12 #include <sys/stat.h>
13 /* Test macros for file types. */
14 
15 #define __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask))
16 
17 #define S_ISDIR(mode) __S_ISTYPE((mode), S_IFDIR)
18 #define S_ISCHR(mode) __S_ISTYPE((mode), S_IFCHR)
19 #define S_ISBLK(mode) __S_ISTYPE((mode), S_IFBLK)
20 #define S_ISREG(mode) __S_ISTYPE((mode), S_IFREG)
21 
22 #endif


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:12:22