From Ivan Sy:
[obnox/wireshark/wip.git] / config.h.win32
1 /* $Id$ */
2 /* config.h.win32 Generated manually. :-) */
3 /* config.h.  Generated automatically by configure.  */
4 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
5
6 /* Generated Bison and Flex files test whether __STDC__ is defined
7    in order to check whether to use ANSI C features such as "const".
8
9    GCC defines it as 1 even if extensions that render the implementation
10    non-conformant are enabled; Sun's C compiler (and, I think, other
11    AT&T-derived C compilers) define it as 0 if extensions that render
12    the implementation non-conformant are enabled; Microsoft Visual C++
13    6.0 doesn't define it at all if extensions that render the implementation
14    non-conformant are enabled.
15
16    We define it as 0 here, so that those generated files will use
17    those features (and thus not get type warnings when compiled with
18    MSVC++). */
19 #ifndef __STDC__
20 #define __STDC__ 0
21 #endif
22
23 /* 
24  * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
25  */
26 #define YY_NO_UNISTD_H
27
28 /* Use Unicode in Windows runtime functions. */
29 #define UNICODE 1
30 #define _UNICODE 1
31
32 /* Define if you have the ANSI C header files.  */
33 #define STDC_HEADERS 1
34
35 /* Define if your processor stores words with the most significant
36    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
37 /* #undef WORDS_BIGENDIAN */
38
39 /* Define if lex declares yytext as a char * by default, not a char[].  */
40 #define YYTEXT_POINTER 1
41
42 #define HAVE_PLUGINS            1
43 #define PLUGINS_NEED_ADDRESS_TABLE 1
44
45 /* Plugins can also use the import library of libwireshark.dll instead
46    of the old API. In that case we undefine PLUGINS_NEED_ADDRESS_TABLE 
47    for the plugin. We don't undefine PLUGINS_NEED_ADDRESS_TABLE globally.
48    Thus Wireshark will be still able to load plugins using the old API. 
49    The macro HAVE_WIN32_LIBWIRESHARK_LIB has to be defined in plugin's 
50    makefile.nmake. A template is available in doc/README.plugins */
51 #ifdef HAVE_WIN32_LIBWIRESHARK_LIB
52 #undef PLUGINS_NEED_ADDRESS_TABLE
53 #endif
54
55 /* #undef HAVE_SA_LEN */
56
57 /* #undef NEED_STRERROR_H */
58
59 /* #undef HAVE_MKSTEMP */
60 /* #undef HAVE_MKDTEMP */
61
62 @HAVE_LIBPCAP@
63 @HAVE_PCAP_BREAKLOOP@
64 @HAVE_PCAP_FINDALLDEVS@
65 @HAVE_PCAP_DATALINK_NAME_TO_VAL@
66 @HAVE_PCAP_DATALINK_VAL_TO_NAME@
67 @WPCAP_CONSTIFIED@
68 @HAVE_LIBWIRESHARKDLL@
69
70 @HAVE_PCAP_LIST_DATALINKS@
71 @HAVE_PCAP_SET_DATALINK@
72
73 @HAVE_REMOTE@
74 @HAVE_PCAP_REMOTE@
75 @HAVE_PCAP_OPEN@
76 @HAVE_PCAP_FINDALLDEVS_EX@
77 @HAVE_PCAP_CREATESRCSTR@
78 @HAVE_PCAP_SETSAMPLING@
79
80 @HAVE_AIRPCAP@
81 @HAVE_AIRPDCAP@
82
83 /* Use new packet list or not Warning Experimental */
84 @HAVE_NEW_PACKET_LIST@
85
86 /* availability of pcap_freecode() is handled at runtime */
87 #define HAVE_PCAP_FREECODE 1
88
89 /* define macro for importing variables from an dll 
90  * it depends on HAVE_LIBWIRESHARKDLL and _NEED_VAR_IMPORT_
91  */
92 #if defined (_NEED_VAR_IMPORT_) && defined (HAVE_LIBWIRESHARKDLL)
93 #  define WS_VAR_IMPORT __declspec(dllimport) extern
94 #else
95 #  define WS_VAR_IMPORT extern
96 #endif
97
98 /* Define if you have the gethostbyname2 function.  */
99 /* #undef HAVE_GETHOSTBYNAME2 */
100
101 /* Define if you have the getprotobynumber function.  */
102 /* #undef HAVE_GETPROTOBYNUMBER */
103
104 /* Define if you have the <arpa/inet.h> header file.  */
105 /* #undef HAVE_ARPA_INET_H */
106
107 /* Define if you have the <fcntl.h> header file.  */
108 #define HAVE_FCNTL_H 1
109
110 /* Define if you have the <iconv.h> header file.  */
111 /* #undef HAVE_ICONV */
112
113 /* Define if you have the <netdb.h> header file.  */
114 /* #undef HAVE_NETDB_H */
115
116 /* Define if you have the <netinet/in.h> header file.  */
117 /* #define HAVE_NETINET_IN_H 1 */
118
119 /* Define if you have the <snmp/snmp.h> header file.  */
120 /* #undef HAVE_SNMP_SNMP_H */
121
122 /* Define if you have the <snmp/version.h> header file.  */
123 /* #undef HAVE_SNMP_VERSION_H */
124
125 /* Define if you have the <stdarg.h> header file.  */
126 #define HAVE_STDARG_H 1
127
128 /* Define if you have the <stddef.h> header file.  */
129 /* #undef HAVE_STDDEF_H */
130
131 /* Define if you have the <sys/ioctl.h> header file.  */
132 /* #undef HAVE_SYS_IOCTL_H */
133
134 /* Define if you have the <sys/socket.h> header file.  */
135 /* #undef HAVE_SYS_SOCKET_H */
136
137 /* Define if you have the <sys/sockio.h> header file.  */
138 /* #undef HAVE_SYS_SOCKIO_H */
139
140 /* Define if you have the <sys/stat.h> header file.  */
141 #define HAVE_SYS_STAT_H 1
142
143 /* Define if you have the <sys/time.h> header file.  */
144 /* #define HAVE_SYS_TIME_H 1 */
145
146 /* Define if you have the <sys/types.h> header file.  */
147 #define HAVE_SYS_TYPES_H 1
148
149 /* Define if you have the <sys/wait.h> header file.  */
150 /* #undef HAVE_SYS_WAIT_H */
151
152 /* Define if you have the <unistd.h> header file.  */
153 /* #define HAVE_UNISTD_H 1 */
154
155 /* Define if <inttypes.h> defines PRI[doxu]64 macros */
156 /* #define INTTYPES_H_DEFINES_FORMATS */
157
158 /* Format for printing 64-bit signed decimal numbers */
159 #ifndef PRId64
160 #ifdef _MSC_EXTENSIONS
161 #define PRId64  "I64d"
162 #else /* _MSC_EXTENSIONS */
163 #define PRId64  "lld"
164 #endif /* _MSC_EXTENSIONS */
165 #endif /* PRId64 */
166
167 /* Format for printing 64-bit unsigned octal numbers */
168 #ifndef PRIo64
169 #ifdef _MSC_EXTENSIONS
170 #define PRIo64  "I64o"
171 #else /* _MSC_EXTENSIONS */
172 #define PRIo64  "llo"
173 #endif /* _MSC_EXTENSIONS */   
174 #endif /* PRIo64 */   
175
176 /* Format for printing 64-bit unsigned decimal numbers */
177 #ifndef PRIu64
178 #ifdef _MSC_EXTENSIONS
179 #define PRIu64  "I64u"
180 #else /* _MSC_EXTENSIONS */
181 #define PRIu64  "llu"  
182 #endif /* _MSC_EXTENSIONS */
183 #endif /* PRIu64 */
184
185 /* Formats for printing 64-bit unsigned hexadecimal numbers */
186 /* XXX - it seems that GLib has problems with the MSVC like I64x.
187    As we use GLib's g_sprintf and alike, it should be safe to use
188    llx everywhere now, making the macros pretty useless. For details see:
189    http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1025 */
190 #ifndef PRIx64
191 #ifdef _MSC_EXTENSIONS
192 /*#define PRIx64  "I64x"*/
193 #define PRIx64  "llx"
194 #else /* _MSC_EXTENSIONS */
195 #define PRIx64  "llx"
196 #endif /* _MSC_EXTENSIONS */
197 #endif /* PRIx64 */
198
199 #ifndef PRIX64
200 #ifdef _MSC_EXTENSIONS
201 /*#define PRIX64  "I64X"*/
202 #define PRIX64  "llX"
203 #else /* _MSC_EXTENSIONS */
204 #define PRIX64  "llX"
205 #endif /* _MSC_EXTENSIONS */
206 #endif /* PRIX64 */
207
208 /* Define if you have the z library (-lz).  */
209 @HAVE_LIBZ@
210
211 /* Define to use GNU ADNS library */
212 @HAVE_C_ARES@
213
214 /* Define to use GNU ADNS library */
215 #ifndef HAVE_C_ARES
216 @HAVE_GNU_ADNS@
217 #define ADNS_JGAA_WIN32 1
218 #endif
219
220 /* Define to use the PCRE library */
221 @HAVE_PCRE@
222
223 /* Define to use the Nettle library */
224 @HAVE_NETTLE@
225
226 /* Define to use the gnutls library */
227 @HAVE_LIBGNUTLS@
228
229 /* Define to use the libgcrypt library */
230 @HAVE_LIBGCRYPT@
231
232 /* Define to use mit kerberos for decryption of kerberos/sasl/dcerpc */
233 @HAVE_KFW@
234 #ifdef HAVE_MIT_KERBEROS
235 #define HAVE_KERBEROS
236 #endif
237
238 /* Define to use Lua */
239 @HAVE_LUA@
240 @HAVE_LUA_5_1@
241
242 /* Define to use Portaudio library */
243 @HAVE_LIBPORTAUDIO@
244 /* Define  version of of the Portaudio library API */
245 @PORTAUDIO_API_1@
246
247 /* Define to have SMI */
248 @HAVE_SMI@
249
250 /* Define to have GeoIP */
251 @HAVE_GEOIP@
252
253
254 #ifndef WIN32
255 #define WIN32                   1
256 #endif
257
258 /* Define for IPv6 */
259 @INET6@
260
261 /* Define to have ntddndis.h */
262 @HAVE_NTDDNDIS_H@
263
264 #define HAVE_WINDOWS_H          1
265 #define HAVE_WINSOCK2_H         1
266 #define HAVE_DIRECT_H           1
267 #define NEED_INET_ATON_H        1
268 #define NEED_INET_V6DEFS_H      1
269 /* Visual C 9 (2008) now needs these prototypes */
270 #if _MSC_VER == 1500
271 #define NTDDI_VERSION NTDDI_WIN2K
272 #define _WIN32_WINNT _WIN32_WINNT_WIN2K
273 #endif
274 #define NEED_GETOPT_H           1
275 #define NEED_STRPTIME_H         1
276 #define strcasecmp              stricmp
277 #define strncasecmp             strnicmp
278 #define popen                   _popen
279 #define pclose                  _pclose
280
281 /* Needed for zlib, according to http://www.winimage.com/zLibDll/ */
282 /*#define ZLIB_DLL                1
283 #define _WINDOWS                1*/
284
285 /* Name of package */
286 #define PACKAGE "wireshark"
287
288 /* Version number of package */
289 #define VERSION "@VERSION@"
290
291 /* We shouldn't need this under Windows but we'll define it anyway. */
292 #define HTML_VIEWER "mozilla"
293
294 /* Check for the required _MSC_VER */
295 #if MSC_VER_REQUIRED != _MSC_VER
296 #define WS_TO_STRING2(x) #x
297 #define WS_TO_STRING(x) WS_TO_STRING2(x)
298 #pragma message( "_MSC_VER is:" WS_TO_STRING(_MSC_VER) " but required is:" WS_TO_STRING(MSC_VER_REQUIRED) )
299 #error Your MSVC_VARIANT setting in config.nmake doesn't match the MS compiler version!
300 #endif