-
Notifications
You must be signed in to change notification settings - Fork 1
/
file_incl.h
57 lines (49 loc) · 896 Bytes
/
file_incl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef FILE_INCL_H
#define FILE_INCL_H
#ifdef INCL_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef INCL_SYS_DIR_H
# include <sys/dir.h>
#endif
#ifndef linux
#ifdef INCL_SYS_DIRENT_H
# include <sys/dirent.h>
#endif
#endif
#ifdef INCL_DIRENT_H
# include <dirent.h>
#endif
#ifdef INCL_SYS_FILIO_H
# include <sys/filio.h>
#endif
#ifdef INCL_SYS_SOCKIO_H
# include <sys/sockio.h>
#endif
#ifdef INCL_SYS_MKDEV_H
# include <sys/mkdev.h>
#endif
#ifdef INCL_SYS_RESOURCE_H
# include <sys/resource.h>
#endif
#ifdef INCL_SYS_RUSAGE_H
# include <sys/rusage.h>
#endif
#ifdef INCL_CRYPT_H
# include <crypt.h>
#endif
#if defined(LATTICE) || defined(__SASC)
#undef close
#undef ioctl
#undef write
#undef read
#endif
#ifdef WIN32
# include <direct.h>
# include <io.h>
# define OS_mkdir(x, y) mkdir(x)
# define lstat(x, y) stat(x, y)
#else
# define OS_mkdir(x, y) mkdir(x, y)
#endif
#endif