From 0f8133c3f0128786a6a480e8f1e4d0406f6580d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Mayer?= Date: Sun, 6 Oct 2013 20:51:13 +0000 Subject: [PATCH] More copying of config.h.win32 stuff into cmake svn path=/trunk/; revision=52419 --- cmakeconfig.h.in | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index e9a9b19303..a72ef8bce3 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -409,13 +409,35 @@ # 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