summaryrefslogtreecommitdiffstats
path: root/src/corelib/global
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-24 08:57:00 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-24 11:31:53 (GMT)
commita41d614eb8afd7c1c5b95b8ac34335fc0aaf0a18 (patch)
tree456b1d064dcb274b4546587acdbcd4ddfa62ea7f /src/corelib/global
parent293fc4d4b4eb4caa5f50efe23252fe7d93b28df4 (diff)
downloadQt-a41d614eb8afd7c1c5b95b8ac34335fc0aaf0a18.zip
Qt-a41d614eb8afd7c1c5b95b8ac34335fc0aaf0a18.tar.gz
Qt-a41d614eb8afd7c1c5b95b8ac34335fc0aaf0a18.tar.bz2
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
Diffstat (limited to 'src/corelib/global')
-rw-r--r--src/corelib/global/qglobal.h9
1 files changed, 9 insertions, 0 deletions
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.*/