| | 62 | // How to include stat.h |
| | 63 | #if __dest_os == __mac_os |
| | 64 | #define OSSTAT stat |
| | 65 | #define OSSTATSTRUCT stat |
| | 66 | #define __stat_header <stat.h> |
| | 67 | #elif __dest_os == __win32_os |
| | 68 | #define OSSTAT _stat |
| | 69 | #define OSSTATSTRUCT _stat |
| | 70 | #define S_IRWXU 0x0e00 |
| | 71 | #define S_ISDIR(m) (((m)&(S_IFMT)) == (S_IFDIR)) |
| | 72 | #define S_ISREG(m) (((m)&(S_IFMT)) == (S_IFREG)) |
| | 73 | #define __stat_header <sys/stat.h> |
| | 74 | #elif __dest_os == __linux_os || __dest_os == __mac_os_x |
| | 75 | #define OSSTAT stat |
| | 76 | #define OSSTATSTRUCT stat |
| | 77 | #define __stat_header <sys/stat.h> |
| | 78 | #else |
| | 79 | #error __dest_os |
| | 80 | #endif |
| | 81 | |