]> sjero.net Git - wget/blob - msdos/config.h
Gisle's diff-7.txt.
[wget] / msdos / config.h
1 /* Configuration header file for MS-DOS/Watt-32
2    Copyright (C) 2007 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    In addition, as a special exception, the Free Software Foundation
20    gives permission to link the code of its release of Wget with the
21    OpenSSL project's "OpenSSL" library (or with modified versions of it
22    that use the same license as the "OpenSSL" library), and distribute
23    the linked executables.  You must obey the GNU General Public License
24    in all respects for all of the code used other than "OpenSSL".  If you
25    modify this file, you may extend this exception to your version of the
26    file, but you are not obligated to do so.  If you do not wish to do
27    so, delete this exception statement from your version.  */
28
29
30 #ifndef CONFIG_DOS_H
31 #define CONFIG_DOS_H
32
33 #include <stdlib.h>
34 #include <limits.h>
35 #include <tcp.h>
36 #include <malloc.h>
37
38 #ifdef __DJGPP__
39 #include <sys/config.h>
40 #endif
41
42 #include <sys/errno.h>
43
44 #if defined(__WATCOMC__)
45   #if (__WATCOMC__ >= 1250)  /* OW 1.5+ */
46   #define OPENWATCOM_15
47   #endif
48   #if (__WATCOMC__ >= 1270)  /* OW 1.7+ */
49     #define OPENWATCOM_17
50   #endif
51 #endif
52
53 #if defined(__HIGHC__)
54   #define HAVE_UNISTD_H 1
55   #define HAVE_UTIME_H 1
56 #endif
57
58 #if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__HIGHC__)
59   #define inline
60 #endif
61
62 #define USE_OPIE 1
63 #define USE_DIGEST 1
64 #define DEBUG
65
66 #ifdef __DJGPP__
67   #define HAVE__BOOL          1
68   #define HAVE_STRCASECMP 1
69   #define HAVE_STRNCASECMP 1
70   #define HAVE_SIGSETJMP 1
71   #define HAVE_SIGBLOCK 1
72   #define HAVE_STRUCT_UTIMBUF 1
73   #define HAVE_SYS_SELECT_H   1
74   #define HAVE_USLEEP         1
75   #define HAVE_UTIME_H        1
76   #define HAVE_INT64_T        1
77
78   #if (DJGPP_MINOR >= 4)
79     #define HAVE_STDBOOL_H 1
80     #define HAVE_STDINT_H  1
81     #define HAVE_SNPRINTF 1
82     #define HAVE_VSNPRINTF 1
83     #define HAVE_UINT32_T 1
84   #endif
85 #endif
86
87 #ifdef __HIGHC__
88   #define HAVE_STRUCT_UTIMBUF 1
89   #define HAVE_UTIME_H 1
90 #endif
91
92 #ifdef OPENWATCOM_15
93   #define HAVE_INT64_T     1
94   #define HAVE_SNPRINTF    1
95   #define HAVE_STRCASECMP  1
96   #define HAVE_STRNCASECMP 1
97   #define HAVE_STDINT_H    1
98   #define HAVE_UTIME_H     1
99 #endif
100
101 #ifdef OPENWATCOM_17
102   #define HAVE__BOOL       1
103   #define HAVE_STDBOOL_H   1
104 #endif
105
106 #define HAVE_PROCESS_H     1
107 #define HAVE_STRDUP 1
108 #define HAVE_STDLIB_H 1
109 #define HAVE_STRING_H 1
110 #define HAVE_BUILTIN_MD5 1
111 #define HAVE_ISATTY 1
112
113 #define lookup_host  wget_lookuphost
114 #define select       select_s
115 #define socklen_t    int
116
117 #define sock_read    wget_sock_read
118 #define sock_write   wget_sock_write
119 #define sock_close   wget_sock_close
120
121 #if !defined(__DJGPP__)
122   #include <direct.h>
123   #define mkdir(p,a)  (mkdir)(p)
124   #define strcasecmp stricmp
125 #endif
126
127 #if !defined(MSDOS)
128   #define MSDOS
129 #endif
130
131 #define OS_TYPE "DOS"
132
133 #endif  /* CONFIG_DOS_H */