-/* $Id: config.h.win32,v 1.35 2002/06/23 10:32:11 guy Exp $ */
+/* $Id$ */
/* config.h.win32 Generated manually. :-) */
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
#define __STDC__ 0
#endif
+/* Use Unicode in Windows runtime functions. */
+#define UNICODE 1
+#define _UNICODE 1
+
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* #undef WORDS_BIGENDIAN */
/* Define if lex declares yytext as a char * by default, not a char[]. */
-/* #undef YYTEXT_POINTER */
+#define YYTEXT_POINTER 1
#define HAVE_PLUGINS 1
#define PLUGINS_NEED_ADDRESS_TABLE 1
-/* #undef HAVE_SA_LEN */
+/* Plugins can also use the import library of libwireshark.dll instead
+ of the old API. In that case we undefine PLUGINS_NEED_ADDRESS_TABLE
+ for the plugin. We don't undefine PLUGINS_NEED_ADDRESS_TABLE globally.
+ Thus Ethereal will be still able to load plugins using the old API.
+ The macro HAVE_WIN32_LIBWIRESHARK_LIB has to be defined in plugin's
+ makefile.nmake. A template is available in doc/README.plugins */
+#ifdef HAVE_WIN32_LIBWIRESHARK_LIB
+#undef PLUGINS_NEED_ADDRESS_TABLE
+#endif
-/* #undef NEED_SNPRINTF_H */
+/* #undef HAVE_SA_LEN */
/* #undef NEED_STRERROR_H */
#define NEED_MKSTEMP 1
-#define HAVE_LIBPCAP 1
+@HAVE_LIBPCAP@
+@HAVE_PCAP_BREAKLOOP@
+@HAVE_PCAP_FINDALLDEVS@
+@HAVE_PCAP_DATALINK_NAME_TO_VAL@
+@HAVE_PCAP_DATALINK_VAL_TO_NAME@
+@WPCAP_CONSTIFIED@
+@HAVE_LIBWIRESHARKDLL@
+
+@HAVE_AIRPCAP@
+
+/* availability of pcap_freecode() is handled at runtime */
+#define HAVE_PCAP_FREECODE 1
+
+/* define macro for importing variables from an dll
+ * it depends on HAVE_LIBWIRESHARK and _NEED_VAR_IMPORT_
+ */
+#if defined (_NEED_VAR_IMPORT_) && defined (HAVE_LIBWIRESHARKDLL)
+# define WS_VAR_IMPORT __declspec(dllimport) extern
+#else
+# define WS_VAR_IMPORT extern
+#endif
-/* #undef HAVE_UCD_SNMP */
+@HAVE_NET_SNMP@
+@HAVE_SOME_SNMP@
/* Define if you have the gethostbyname2 function. */
/* #undef HAVE_GETHOSTBYNAME2 */
#define HAVE_FCNTL_H 1
/* Define if you have the <iconv.h> header file. */
-/* #undef HAVE_ICONV_H */
+/* #undef HAVE_ICONV */
/* Define if you have the <netdb.h> header file. */
/* #undef HAVE_NETDB_H */
/* Define if you have the <unistd.h> header file. */
/* #define HAVE_UNISTD_H 1 */
+/* Define if <inttypes.h> defines PRI[doxu]64 macros */
+/* #define INTTYPES_H_DEFINES_FORMATS */
+
+/* Format for printing 64-bit signed decimal numbers */
+#ifndef PRId64
+#ifdef _MSC_EXTENSIONS
+#define PRId64 "I64d"
+#else /* _MSC_EXTENSIONS */
+#define PRId64 "lld"
+#endif /* _MSC_EXTENSIONS */
+#endif /* PRId64 */
+
+/* Format for printing 64-bit unsigned octal numbers */
+#ifndef PRIo64
+#ifdef _MSC_EXTENSIONS
+#define PRIo64 "I64o"
+#else /* _MSC_EXTENSIONS */
+#define PRIo64 "llo"
+#endif /* _MSC_EXTENSIONS */
+#endif /* PRIo64 */
+
+/* Format for printing 64-bit unsigned decimal numbers */
+#ifndef PRIu64
+#ifdef _MSC_EXTENSIONS
+#define PRIu64 "I64u"
+#else /* _MSC_EXTENSIONS */
+#define PRIu64 "llu"
+#endif /* _MSC_EXTENSIONS */
+#endif /* PRIu64 */
+
+/* Formats for printing 64-bit unsigned hexadecimal numbers */
+/* XXX - it seems that GLib has problems with the MSVC like I64x.
+ As we use GLib's g_sprintf and alike, it should be safe to use
+ llx everywhere now, making the macros pretty useless. For details see:
+ http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1025 */
+#ifndef PRIx64
+#ifdef _MSC_EXTENSIONS
+/*#define PRIx64 "I64x"*/
+#define PRIx64 "llx"
+#else /* _MSC_EXTENSIONS */
+#define PRIx64 "llx"
+#endif /* _MSC_EXTENSIONS */
+#endif /* PRIx64 */
+
+#ifndef PRIX64
+#ifdef _MSC_EXTENSIONS
+/*#define PRIX64 "I64X"*/
+#define PRIX64 "llX"
+#else /* _MSC_EXTENSIONS */
+#define PRIX64 "llX"
+#endif /* _MSC_EXTENSIONS */
+#endif /* PRIX64 */
+
/* Define if you have the z library (-lz). */
-/*#define HAVE_LIBZ 1*/
+@HAVE_LIBZ@
+
+/* Define to use GNU ADNS library */
+@HAVE_GNU_ADNS@
+#define ADNS_JGAA_WIN32 1
+
+/* Define to use the PCRE library */
+@HAVE_PCRE@
+
+/* Define to use the Nettle library */
+@HAVE_NETTLE@
+
+/* Define to use the gnutls library */
+@HAVE_LIBGNUTLS@
+
+/* Define to use the libgcrypt library */
+@HAVE_LIBGCRYPT@
+
+/* Define to use mit kerberos for decryption of kerberos/sasl/dcerpc */
+@HAVE_KFW@
+#ifdef HAVE_MIT_KERBEROS
+#define HAVE_KERBEROS
+#endif
+
+/* Define to use Lua */
+@HAVE_LUA@
+@HAVE_LUA_5_1@
+
+/* Define to use Portaudio library */
+@HAVE_LIBPORTAUDIO@
+/* Define version of of the Portaudio library API */
+@PORTAUDIO_API_1@
#ifndef WIN32
#define WIN32 1
#define HAVE_WINDOWS_H 1
#define HAVE_WINSOCK2_H 1
#define HAVE_DIRECT_H 1
-#define HAVE_IO_H 1
#define NEED_INET_ATON_H 1
#define NEED_INET_V6DEFS_H 1
#define NEED_GETOPT_H 1
#define NEED_STRPTIME_H 1
-#define snprintf _snprintf
-#define vsnprintf _vsnprintf
#define strcasecmp stricmp
#define strncasecmp strnicmp
-#define open _open
-#define close _close
#define popen _popen
#define pclose _pclose
#define _WINDOWS 1*/
/* Name of package */
-#define PACKAGE "ethereal"
+#define PACKAGE "wireshark"
/* Version number of package */
#define VERSION "@VERSION@"
/* We don't know what the plugin installation directory will be. */
#define PLUGIN_DIR NULL
+
+/* We shouldn't need this under Windows but we'll define it anyway. */
+#define HTML_VIEWER "mozilla"