00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __IOCOMPAT_H__
00029 #define __IOCOMPAT_H__
00030
00032
00033
00034
00035
00036
00037 #ifndef _MSC_VER
00038
00039 #include <sys/types.h>
00040 #include <sys/stat.h>
00041 #include <dirent.h>
00042 #include <string.h>
00043 #include <unistd.h>
00044 #include <limits.h>
00045 #include <errno.h>
00046
00047 #else // _MSC_VER
00048
00049 #define R_OK 4
00050 #define F_OK 0
00051 #include <sys/types.h>
00052 #include <sys/stat.h>
00053 #include <direct.h>
00054 #include <string.h>
00055 #include <stdlib.h>
00056 #include <errno.h>
00057 #include <io.h>
00058 #include <fcntl.h>
00059 #define PATH_MAX _MAX_PATH
00060 #define S_ISDIR(x) ((x) & _S_IFDIR)
00061 #define S_ISREG(x) ((x) & _S_IFREG)
00062
00063 #endif // _MSC_VER
00064
00065 #ifndef O_BINARY
00066 #define O_BINARY 0
00067 #endif
00068
00070
00071 #endif // !__IOCOMPAT_H__