]> cygwin.com Git - cygwin-apps/cygutils.git/blob - common.h
remove last and utmpdump
[cygwin-apps/cygutils.git] / common.h
1 #ifndef CYGUTILS_COMMON_H
2 #define CYGUTILS_COMMON_H 1
3
4 #if HAVE_CONFIG_H
5 # include <config.h>
6 #endif
7
8 #include <stdio.h>
9
10 #if HAVE_SYS_TYPES_H
11 # include <sys/types.h>
12 #endif /* HAVE_SYS_TYPES_H */
13 #if HAVE_SYS_STAT_H
14 # include <sys/stat.h>
15 #endif /* HAVE_SYS_STAT_H */
16 #if STDC_HEADERS
17 # include <stdlib.h>
18 # include <stddef.h>
19 #else
20 # if HAVE_STDLIB_H
21 # include <stdlib.h>
22 # endif
23 #endif /*STDC_HEADERS*/
24
25 #if HAVE_STRING_H
26 # if !STDC_HEADERS && HAVE_MEMORY_H
27 # include <memory.h>
28 # endif
29 # include <string.h>
30 #elif HAVE_STRINGS_H
31 # include <strings.h>
32 #endif /*HAVE_STRING[S]_H*/
33
34 #if HAVE_STDARG_H
35 # include <stdarg.h>
36 # define VA_START(a, f) va_start(a, f)
37 #else
38 # if HAVE_VARARGS_H
39 # include <varargs.h>
40 # define VA_START(a, f) va_start(a)
41 # endif
42 #endif
43 #ifndef VA_START
44 error no variadic api
45 #endif /* VARIADIC */
46
47 #if TIME_WITH_SYS_TIME
48 # include <sys/time.h>
49 # include <time.h>
50 #else
51 # if HAVE_SYS_TIME_H
52 # include <sys/time.h>
53 # else
54 # include <time.h>
55 # endif
56 #endif /* TIME */
57
58 #if HAVE_UNISTD_H
59 # include <unistd.h>
60 #endif /*HAVE_UNISTD_H*/
61
62 #if HAVE_SYS_PARAM_H
63 # include <sys/param.h>
64 #endif /*HAVE_SYS_PARAM_H */
65
66 #if HAVE_ERRNO_H
67 # include <errno.h>
68 #endif /*HAVE_ERRNO_H*/
69
70 #if HAVE_FCNTL_H
71 # include <fcntl.h>
72 #endif /*HAVE_FCNTL_H*/
73
74 #if HAVE_LIMITS_H
75 # include <limits.h>
76 #endif /*HAVE_LIMITS_H*/
77
78 #if HAVE_MALLOC_H
79 # include <malloc.h>
80 #endif /*HAVE_MALLOC_H*/
81
82 #if HAVE_CTYPE_H
83 # include <ctype.h>
84 #endif /*HAVE_CTYPE_H*/
85
86 #if HAVE_GETOPT_H
87 # include <getopt.h>
88 #endif /*HAVE_GETOPT_H*/
89
90 /* column needs TIOCGWINSZ */
91 #if HAVE_TERMIOS_H
92 # include <termios.h>
93 #endif
94
95 #if GWINSZ_IN_SYS_IOCTL
96 # include <sys/ioctl.h>
97 #endif
98 /* End: column needs TIOCGWINSZ */
99
100
101 #if HAVE_POPT_H
102 # include <popt.h>
103 #endif /*HAVE_POPT_H*/
104
105 #if HAVE_WINDOWS_H
106 # include <windows.h>
107 #else
108 # ifndef O_BINARY
109 # define O_BINARY 0
110 # endif
111 # define setmode(a, b)
112 #endif /*HAVE_WINDOWS_H*/
113
114 /* we don't include wchar.h or wctype.h here. let widechar.h do that */
115
116 #endif /* !CYGUTILS_COMMON_H */
117
This page took 0.040847 seconds and 6 git commands to generate.