WSDG: Update docbook info
[metze/wireshark/wip.git] / cmakeconfig.h.in
index 66d6c25d372e48d8c5c7a9d58b69802aac3cd626..a7ab6bd4ddd3d2379066566eb264f6613c37c5fc 100644 (file)
@@ -1,5 +1,8 @@
 /* cmakeconfig.h.in */
 
+#ifndef __CONFIG_H__
+#define __CONFIG_H__
+
 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
 
 /* Name of package */
 /* Directory where extcap hooks reside */
 #define EXTCAP_DIR "${EXTCAP_DIR}"
 
-/* Define to 1 if we want to enable extcap */
-#cmakedefine HAVE_EXTCAP 1
-
 /* Define to 1 if we want to enable plugins */
 #cmakedefine HAVE_PLUGINS 1
 
 /*  Define to 1 if we check hf conflict */
 #cmakedefine ENABLE_CHECK_FILTER 1
 
-/* Link plugins statically into Wireshark */
+/* Link Wireshark libraries statically */
 #cmakedefine ENABLE_STATIC 1
 
 /* Enable AirPcap */
@@ -68,7 +68,7 @@
 /* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */
 #cmakedefine HAVE_GEOIP_V6 1
 
-/* Define if GeoIP has GeoIP_free (not available upstream with 1.6.10 or earlier) */
+/* Define if GeoIP has GeoIP_free */
 #cmakedefine HAVE_GEOIP_FREE 1
 
 /* Define to 1 if you have the <ifaddrs.h> header file. */
 /* Define to 1 if you have the <getopt.h> header file. */
 #cmakedefine HAVE_GETOPT_H 1
 
-/* Define if GLib's printf functions support thousands grouping. */
-#cmakedefine HAVE_GLIB_PRINTF_GROUPING 1
-
-/* Define to 1 if you have the `getprotobynumber' function. */
-#cmakedefine HAVE_GETPROTOBYNUMBER 1
-
 /* Define to 1 if you have the <grp.h> header file. */
 #cmakedefine HAVE_GRP_H 1
 
 /* Define to use heimdal kerberos */
 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
 
-/* Define to 1 if you have the `inet_aton' function. */
-#cmakedefine HAVE_INET_ATON 1
-
-/* Define to 1 if you have the `inet_ntop' function. */
-#cmakedefine HAVE_INET_NTOP 1
-
-/* Define to 1 if you have the `inet_pton' function. */
-#cmakedefine HAVE_INET_PTON 1
-
 /* Define to 1 if you have the `inflatePrime' function. */
 #cmakedefine HAVE_INFLATEPRIME 1
 
-/* Define to 1 if you have the <inttypes.h> header file. */
-#cmakedefine HAVE_INTTYPES_H 1
-
 /* Define to 1 if you have the `issetugid' function. */
 #cmakedefine HAVE_ISSETUGID 1
 
 /* Define to 1 if you have the WinSparkle library */
 #cmakedefine HAVE_SOFTWARE_UPDATE 1
 
-/* Define to 1 if you have the <stdint.h> header file. */
-#cmakedefine HAVE_STDINT_H 1
-
-/* Define to 1 if you have the <strings.h> header file. */
-#cmakedefine HAVE_STRINGS_H 1
-
 /* Define if you have the 'strptime' function. */
 #cmakedefine HAVE_STRPTIME 1
 
 /* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
 #cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1
 
-/* Define to 1 if you have the `sysconf' function. */
-#cmakedefine HAVE_SYSCONF 1
-
 /* Define to 1 if you have the <sys/ioctl.h> header file. */
 #cmakedefine HAVE_SYS_IOCTL_H 1
 
 /* Define to 1 if you have the <unistd.h> header file. */
 #cmakedefine HAVE_UNISTD_H 1
 
-/* Define to 1 if you have the <windows.h> header file. */
-#cmakedefine HAVE_WINDOWS_H 1
-
-/* Define to 1 if you have the <winsock2.h> header file. */
-#cmakedefine HAVE_WINSOCK2_H 1
-
 /* Name of package */
 #cmakedefine PACKAGE
 
 /* Define to the version of this package. */
 #cmakedefine PACKAGE_VERSION
 
-/* Support for pcap-ng */
+/* Support for pcapng */
 #cmakedefine PCAP_NG_DEFAULT 1
 
 /* Define if we are using version of of the Portaudio library API */
 /* Define if we have QtWinExtras */
 /* #cmakedefine QT_WINEXTRAS_LIB 1 */
 
-/* Support for packet editor */
-#cmakedefine WANT_PACKET_EDITOR 1
-
 /* Define to 1 if your processor stores words with the most significant byte
    first (like Motorola and SPARC, unlike Intel and VAX). */
 #cmakedefine WORDS_BIGENDIAN 1
 #cmakedefine YYTEXT_POINTER
 
 #if defined(_WIN32)
+   /*
+    * Make sure everyone is using the same API and that it's sufficient
+    * for our needs.
+    * This should match the following:
+    * - The <compatibility><application> section in image\wireshark.exe.manifest.in
+    * - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
+    * - The VersionNT parts of packaging\wix\Prerequisites.wxi
+    */
+#  if defined(NTDDI_VERSION)
+#    error NTDDI_VERSION already defined.
+#  endif
+#  define NTDDI_VERSION NTDDI_VISTA
+#  if defined(_WIN32_WINNT)
+#    error _WIN32_WINNT already defined.
+#  endif
+#  define _WIN32_WINNT _WIN32_WINNT_VISTA
 
    /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
 #  ifndef WIN32
 
    /* FIXME: Detection doesn't work */
 #  define HAVE_NTDDNDIS_H 1
-   /* Visual C 9 (2008), Visual C 10 (2010), Visual C 11 (2012) and Visual C 12 (2013)
-    *  need these prototypes
-    * XXX: Can we use MSC_VER >= 1500 ?? */
-#  if _MSC_VER == 1500 || _MSC_VER == 1600 || _MSC_VER == 1700 || _MSC_VER == 1800
-#    define NTDDI_VERSION NTDDI_WINXPSP3
-#    define _WIN32_WINNT _WIN32_WINNT_WINXP
-#  endif
 
    /*
     * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
     */
 #  define YY_NO_UNISTD_H
 
-
 #  define strncasecmp strnicmp
 #  define popen       _popen
 #  define pclose      _pclose
 #endif
 
 #include <ws_diag_control.h>
+
+#endif /* __CONFIG_H__ */