From a41d614eb8afd7c1c5b95b8ac34335fc0aaf0a18 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 24 Aug 2009 10:57:00 +0200 Subject: define WINVER and _WIN32_WINNT in qglobal.h We define these values now in qglobal.h as 0x0500, which is Windows 2k, the oldest version we will support. Reviewed-by: mariusSO --- src/corelib/global/qglobal.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 93cc30f..d22a863 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -265,6 +265,15 @@ namespace QT_NAMESPACE {} # define Q_OS_WIN #endif +#if defined(Q_OS_WIN32) +# ifndef WINVER +# define WINVER 0x0500 +# endif +# ifndef _WIN32_WINNT +# define _WIN32_WINNT 0x0500 +# endif +#endif + #if defined(Q_OS_DARWIN) # define Q_OS_MAC /* Q_OS_MAC is mostly for compatibility, but also more clear */ # define Q_OS_MACX /* Q_OS_MACX is only for compatibility.*/ -- cgit v0.12