diff options
author | Andy Shaw <qt-info@nokia.com> | 2010-02-01 12:15:17 (GMT) |
---|---|---|
committer | Andy Shaw <qt-info@nokia.com> | 2010-02-01 12:15:17 (GMT) |
commit | 4beac591e47713121ad00ef3df744f7f4d11f2fd (patch) | |
tree | c0a4d54d5cba06b6a6839114ec9c8db0b9c28392 /src/corelib/thread/qthread_win.cpp | |
parent | 64ca7030df6189a0bc4df36473befd868c8d2ef6 (diff) | |
download | Qt-4beac591e47713121ad00ef3df744f7f4d11f2fd.zip Qt-4beac591e47713121ad00ef3df744f7f4d11f2fd.tar.gz Qt-4beac591e47713121ad00ef3df744f7f4d11f2fd.tar.bz2 |
Only set the _WIN32_WINNT define if it is not set or less than 0x0400
By checking the define before setting it, it ensures that its not
set to one that is actually lower than the value currently set to.
Reviewed-by: kkoehne
Diffstat (limited to 'src/corelib/thread/qthread_win.cpp')
-rw-r--r-- | src/corelib/thread/qthread_win.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread_win.cpp b/src/corelib/thread/qthread_win.cpp index b276f0a..37d5b87 100644 --- a/src/corelib/thread/qthread_win.cpp +++ b/src/corelib/thread/qthread_win.cpp @@ -40,7 +40,9 @@ ****************************************************************************/ //#define WINVER 0x0500 +#if _WIN32_WINNT < 0x0400 #define _WIN32_WINNT 0x0400 +#endif #include "qthread.h" |