]> sjero.net Git - wget/blob - msdos/config.h
Space before closing brace. Fixes paramcheck.pl output.
[wget] / msdos / config.h
1 /* Configuration header file for MS-DOS/Watt-32
2    Copyright (C) 2007, 2008 Free Software Foundation, Inc.
3
4    This file is part of GNU Wget.
5
6    GNU Wget is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 3 of the License, or
9    (at your option) any later version.
10
11    GNU Wget is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with Wget.  If not, see <http://www.gnu.org/licenses/>.
18
19    Additional permission under GNU GPL version 3 section 7
20
21    If you modify this program, or any covered work, by linking or
22    combining it with the OpenSSL project's OpenSSL library (or a
23    modified version of that library), containing parts covered by the
24    terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
25    grants you additional permission to convey the resulting work.
26    Corresponding Source for a non-source form of such a combination
27    shall include the source code for the parts of OpenSSL used as well
28    as that of the covered work.  */
29
30
31 #ifndef CONFIG_DOS_H
32 #define CONFIG_DOS_H
33
34 #include <stdlib.h>
35 #include <limits.h>
36 #include <tcp.h>
37 #include <malloc.h>
38
39 #ifdef __DJGPP__
40 #include <sys/config.h>
41 #endif
42
43 #include <sys/errno.h>
44
45 #if defined(__WATCOMC__)
46   #if (__WATCOMC__ >= 1250)  /* OW 1.5+ */
47   #define OPENWATCOM_15
48   #endif
49   #if (__WATCOMC__ >= 1270)  /* OW 1.7+ */
50     #define OPENWATCOM_17
51   #endif
52 #endif
53
54 #if defined(__HIGHC__)
55   #define HAVE_UNISTD_H 1
56   #define HAVE_UTIME_H 1
57 #endif
58
59 #if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__HIGHC__)
60   #define inline
61 #endif
62
63 #define USE_OPIE 1
64 #define USE_DIGEST 1
65 #define DEBUG
66
67 #ifdef __DJGPP__
68   #define HAVE__BOOL          1
69   #define HAVE_STRCASECMP 1
70   #define HAVE_STRNCASECMP 1
71   #define HAVE_SIGSETJMP 1
72   #define HAVE_SIGBLOCK 1
73   #define HAVE_STRUCT_UTIMBUF 1
74   #define HAVE_SYS_SELECT_H   1
75   #define HAVE_USLEEP         1
76   #define HAVE_UTIME_H        1
77   #define HAVE_INT64_T        1
78
79   #if (DJGPP_MINOR >= 4)
80     #define HAVE_STDBOOL_H 1
81     #define HAVE_STDINT_H  1
82     #define HAVE_SNPRINTF 1
83     #define HAVE_VSNPRINTF 1
84     #define HAVE_UINT32_T 1
85   #endif
86 #endif
87
88 #ifdef __HIGHC__
89   #define HAVE_STRUCT_UTIMBUF 1
90   #define HAVE_UTIME_H 1
91 #endif
92
93 #ifdef OPENWATCOM_15
94   #define HAVE_INT64_T     1
95   #define HAVE_SNPRINTF    1
96   #define HAVE_STRCASECMP  1
97   #define HAVE_STRNCASECMP 1
98   #define HAVE_STDINT_H    1
99   #define HAVE_UTIME_H     1
100 #endif
101
102 #ifdef OPENWATCOM_17
103   #define HAVE__BOOL       1
104   #define HAVE_STDBOOL_H   1
105 #endif
106
107 #define HAVE_PROCESS_H     1
108 #define HAVE_STRDUP 1
109 #define HAVE_STDLIB_H 1
110 #define HAVE_STRING_H 1
111 #define HAVE_BUILTIN_MD5 1
112 #define HAVE_ISATTY 1
113
114 #define lookup_host  wget_lookuphost
115 #define select       select_s
116 #define socklen_t    int
117
118 #define sock_read    wget_sock_read
119 #define sock_write   wget_sock_write
120 #define sock_close   wget_sock_close
121
122 #if !defined(__DJGPP__)
123   #include <direct.h>
124   #define mkdir(p,a)  (mkdir)(p)
125   #define strcasecmp stricmp
126 #endif
127
128 #if !defined(MSDOS)
129   #define MSDOS
130 #endif
131
132 #define OS_TYPE "DOS"
133
134 #endif  /* CONFIG_DOS_H */