]> cygwin.com Git - cygwin-apps/cygutils.git/blame - common.h
Lots of changes to support building on non-cygwin platforms.
[cygwin-apps/cygutils.git] / common.h
CommitLineData
d2b03e6a
CW
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
14#if STDC_HEADERS
15# include <stdlib.h>
16# include <string.h>
17#elif HAVE_STRINGS_H
18# include <strings.h>
19#endif /*STDC_HEADERS*/
20
21#if HAVE_UNISTD_H
22# include <unistd.h>
23#endif /*HAVE_UNISTD_H*/
24
25#if HAVE_ERRNO_H
26# include <errno.h>
27#endif /*HAVE_ERRNO_H*/
28
29#if HAVE_SYS_FCNTL_H
30# include <sys/fcntl.h>
31#endif /*HAVE_SYS_FCNTL_H*/
32
33#if HAVE_LIMITS_H
34# include <limits.h>
35#endif /*HAVE_LIMITS_H*/
36
37#if HAVE_POPT_H
38# include <popt.h>
39#endif /*HAVE_POPT_H*/
40
41#if HAVE_WINDOWS_H
42# include <windows.h>
43#else
44# ifndef O_BINARY
45# define O_BINARY 0
46# endif
47# define setmode(a, b)
48#endif /*HAVE_WINDOWS_H*/
49
50#endif /* !CYGUTILS_COMMON_H */
51
This page took 0.02684 seconds and 5 git commands to generate.