More copying of config.h.win32 stuff into cmake
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 6 Oct 2013 20:51:13 +0000 (20:51 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 6 Oct 2013 20:51:13 +0000 (20:51 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@52419 f5534014-38df-0310-8fa8-9805f1628bb7

cmakeconfig.h.in

index e9a9b193036e3f3d34969e4c8333b77f0614bcb8..a72ef8bce3aa917d3ea45f7332c6a5b2ab83e335 100644 (file)
 #  if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
    typedef int ssize_t;
 #  endif
+
    /* FIXME: Detection doesn't work */
 #  define HAVE_NTDDNDIS_H 1
+   /* Visual C 9 (2008), Visual C 10 (2010) and Visual C 11 (2012) need these
+    * prototypes
+    * XXX: Can we use MSC_VER >= 1500 ?? */
+#  if _MSC_VER == 1500 || _MSC_VER == 1600 || _MSC_VER == 1700
+#    define NTDDI_VERSION NTDDI_WIN2K
+#    define _WIN32_WINNT _WIN32_WINNT_WIN2K
+#  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
+
 #  ifndef __STDC__
 #    define __STDC__ 0
 #  endif
    /* Use Unicode in Windows runtime functions. */
 #  define UNICODE 1
 #  define _UNICODE 1
+
+#  define INET6 1
+#  define NEED_INET_V6DEFS_H 1
+#  define HTML_VIEWER "mozilla"
 #endif