From Xiao Xiangquan:
[obnox/wireshark/wip.git] / config.h.win32
index 71820b9977cd343c6d92e11c6c3900ac17c57015..d66faeb8be1f005454c07853c84925062cd1a8bd 100644 (file)
@@ -1,5 +1,5 @@
 /* $Id$ */
-/* config.h.win32 Generated manually. :-) */
+/* 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
 
+/*
+ * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
+ */
+#define YY_NO_UNISTD_H
+
+/* 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
 
 #define YYTEXT_POINTER 1
 
 #define HAVE_PLUGINS           1
-#define PLUGINS_NEED_ADDRESS_TABLE 1
 
 /* #undef HAVE_SA_LEN */
 
-/* #undef NEED_SNPRINTF_H */
-
-/* #undef NEED_STRERROR_H */
-
-#define NEED_MKSTEMP 1
+/* #undef HAVE_MKSTEMP */
+/* #undef HAVE_MKDTEMP */
 
 @HAVE_LIBPCAP@
+@HAVE_PCAP_BREAKLOOP@
 @HAVE_PCAP_FINDALLDEVS@
-@WPCAP_CONSTIFIED@
-@HAVE_LIBETHEREALDLL@
+@HAVE_PCAP_DATALINK_NAME_TO_VAL@
+@HAVE_PCAP_DATALINK_VAL_TO_NAME@
+@HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION@
+@HAVE_LIBWIRESHARKDLL@
+
+@HAVE_PCAP_LIST_DATALINKS@
+@HAVE_PCAP_FREE_DATALINKS@
+@HAVE_PCAP_SET_DATALINK@
+
+@HAVE_REMOTE@
+@HAVE_PCAP_REMOTE@
+@HAVE_PCAP_OPEN@
+@HAVE_PCAP_OPEN_DEAD@
+@HAVE_BPF_IMAGE@
+@HAVE_PCAP_SETSAMPLING@
+
+/* availability of pcap_freecode() is handled at runtime */
+#define HAVE_PCAP_FREECODE 1
+
+/* `pcap_get_selectable_fd' is UN*X-only. */
+/* #undef HAVE_PCAP_GET_SELECTABLE_FD */
+
+@HAVE_AIRPCAP@
+
+@PCAP_NG_DEFAULT@
+@WANT_PACKET_EDITOR@
 
-/* define macro for importing variables from an dll 
- * it depends on HAVE_LIBETHEREAL and _NEED_VAR_IMPORT_
+/* define macro for importing variables from an dll
+ * it depends on HAVE_LIBWIRESHARKDLL and _NEED_VAR_IMPORT_
  */
-#if defined (_NEED_VAR_IMPORT_) && defined (HAVE_LIBETHEREALDLL)
-#  define ETH_VAR_IMPORT __declspec(dllimport) extern
+#if defined (_NEED_VAR_IMPORT_) && defined (HAVE_LIBWIRESHARKDLL)
+#  define WS_VAR_IMPORT __declspec(dllimport) extern
 #else
-#  define ETH_VAR_IMPORT extern
+#  define WS_VAR_IMPORT extern
 #endif
 
-#define HAVE_NET_SNMP 1
-#define HAVE_SOME_SNMP 1
+/*
+ * Define WS_MSVC_NORETURN appropriately for declarations of routines that
+ * never return (just like Charlie on the MTA).
+ *
+ * Note that MSVC++ expects __declspec(noreturn) to precede the function
+ * name and GCC, as far as I know, expects __attribute__((noreturn)) to
+ * follow the function name, so we need two different flavors of
+ * noreturn tag.
+ */
+#define WS_MSVC_NORETURN       __declspec(noreturn)
 
 /* Define if you have the gethostbyname2 function.  */
 /* #undef HAVE_GETHOSTBYNAME2 */
 /* Define if you have the <arpa/inet.h> header file.  */
 /* #undef HAVE_ARPA_INET_H */
 
+/* Define if you have the <direct.h> header file.  */
+#define HAVE_DIRECT_H 1
+
 /* Define if you have the <fcntl.h> header file.  */
 #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 <sys/wait.h> header file.  */
 /* #undef HAVE_SYS_WAIT_H */
 
-/* Define if you have the <ucd-snmp/version.h> header file.  */
-/* #undef HAVE_UCD_SNMP_VERSION_H */
+/* Define if tm_zone field exists in struct tm */
+/* #undef HAVE_TM_ZONE 1 */
+
+/* Define if tzname array exists */
+/* #undef HAVE_TZNAME */
 
 /* Define if you have the <unistd.h> header file.  */
 /* #define HAVE_UNISTD_H 1 */
 
+/* Define if you have the <windows.h> header file.  */
+#define HAVE_WINDOWS_H 1
+
+/* Define if you have the <winsock2.h> header file.  */
+#define HAVE_WINSOCK2_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 */
-
-/* Format for printing 64-bit unsigned hexadecimal numbers */
-#ifndef PRIx64  
-#ifdef _MSC_EXTENSIONS
-#define PRIx64  "I64x"
-#else /* _MSC_EXTENSIONS */
-#define PRIx64  "llx"
-#endif /* _MSC_EXTENSIONS */
-#endif /* PRIx64 */   
-
-/* Define as a function that behaves like strtoull */
-#define        strtoull        _strtoui64
-
 /* Define if you have the z library (-lz).  */
 @HAVE_LIBZ@
+#ifdef HAVE_LIBZ
+#define HAVE_INFLATEPRIME 1
+#endif
 
 /* Define to use GNU ADNS library */
+@HAVE_C_ARES@
+
+/* Define to use GNU ADNS library */
+#ifndef HAVE_C_ARES
 @HAVE_GNU_ADNS@
 #define ADNS_JGAA_WIN32 1
+#endif
 
-/* Define to use the PCRE library */
-@HAVE_PCRE@
+/* Define to use the Nettle library */
+@HAVE_NETTLE@
 
-@HAVE_LIBETHEREALDLL@
+/* Define to use the gnutls library */
+@HAVE_LIBGNUTLS@
 
-/* define macro for importing variables from an dll 
- * it depends on HAVE_LIBETHEREAL and _NEED_VAR_IMPORT_
- */
-#if defined (_NEED_VAR_IMPORT_) && defined (HAVE_LIBETHEREALDLL)
-#  define ETH_VAR_IMPORT __declspec(dllimport) extern
-#else
-#  define ETH_VAR_IMPORT extern
+/* 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 Python */
+@HAVE_PYTHON@
+
+/* Define to use Portaudio library */
+@HAVE_LIBPORTAUDIO@
+/* Define  version of of the Portaudio library API */
+@PORTAUDIO_API_1@
+
+/* Define to have SMI */
+@HAVE_SMI@
+
+/* Define to use GeoIP library */
+@HAVE_GEOIP@
+
+/* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */
+@HAVE_GEOIP_V6@
+
+/* Define for IPv6 */
+@INET6@
+
+/* Define to have ntddndis.h */
+@HAVE_NTDDNDIS_H@
+
+#define NEED_INET_ATON_H    1
+#define NEED_INET_V6DEFS_H  1
+#define NEED_STRPTIME_H     1
+
 #ifndef WIN32
 #define WIN32                  1
 #endif
 
-#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
+/* Visual C 9 (2008) & Visual C 10 (2010) need these prototypes */
+#if _MSC_VER == 1500 || _MSC_VER == 1600
+#define NTDDI_VERSION NTDDI_WIN2K
+#define _WIN32_WINNT _WIN32_WINNT_WIN2K
+#endif
+
 #define strncasecmp            strnicmp
-#define open                   _open
-#define close                  _close
 #define popen                  _popen
 #define pclose                 _pclose
 
-/* Needed for zlib, according to http://www.winimage.com/zLibDll/ */
-/*#define ZLIB_DLL                1
-#define _WINDOWS                1*/
+/* Define to use GTK */
+#define HAVE_GTK
 
 /* 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"
+
+/* Check for the required _MSC_VER */
+#if MSC_VER_REQUIRED != _MSC_VER
+#define WS_TO_STRING2(x) #x
+#define WS_TO_STRING(x) WS_TO_STRING2(x)
+#pragma message( "_MSC_VER is:" WS_TO_STRING(_MSC_VER) " but required is:" WS_TO_STRING(MSC_VER_REQUIRED) )
+#error Your MSVC_VARIANT setting in config.nmake doesn't match the MS compiler version!
+#endif
+
+/* Disable Code Analysis warnings that result in too many false positives. */
+/* http://msdn.microsoft.com/en-US/library/zyhb0b82.aspx */
+#if _MSC_VER >= 1400
+#pragma warning ( disable : 6011 )
+#endif
+
+#if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
+typedef int ssize_t;
+#endif