diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2010-04-13 12:18:03 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2010-04-13 12:20:47 (GMT) |
commit | a165d1cfbb15ced6079a0d752fbdb37a478ff46f (patch) | |
tree | a099014a2bc4bd8c628014067919987ee7797bdc | |
parent | ad38e8f514323782f3806f6d7cce854d323586aa (diff) | |
download | Qt-a165d1cfbb15ced6079a0d752fbdb37a478ff46f.zip Qt-a165d1cfbb15ced6079a0d752fbdb37a478ff46f.tar.gz Qt-a165d1cfbb15ced6079a0d752fbdb37a478ff46f.tar.bz2 |
Removed double setting of _WIN32_WINNT
Derived from the comments in merge request #2175
-rw-r--r-- | src/corelib/thread/qthread_win.cpp | 6 | ||||
-rw-r--r-- | src/gui/dialogs/qwizard_win.cpp | 14 | ||||
-rw-r--r-- | src/gui/styles/qwindowsxpstyle_p.h | 13 |
3 files changed, 8 insertions, 25 deletions
diff --git a/src/corelib/thread/qthread_win.cpp b/src/corelib/thread/qthread_win.cpp index 37d5b87..505a9d6 100644 --- a/src/corelib/thread/qthread_win.cpp +++ b/src/corelib/thread/qthread_win.cpp @@ -39,12 +39,6 @@ ** ****************************************************************************/ -//#define WINVER 0x0500 -#if _WIN32_WINNT < 0x0400 -#define _WIN32_WINNT 0x0400 -#endif - - #include "qthread.h" #include "qthread_p.h" #include "qthreadstorage.h" diff --git a/src/gui/dialogs/qwizard_win.cpp b/src/gui/dialogs/qwizard_win.cpp index 1390b21..ff13585 100644 --- a/src/gui/dialogs/qwizard_win.cpp +++ b/src/gui/dialogs/qwizard_win.cpp @@ -51,17 +51,11 @@ #include <QtGui/QDesktopWidget> // Note, these tests are duplicates in qwindowsxpstyle_p.h. -#ifdef Q_CC_GNU -# include <w32api.h> -# if (__W32API_MAJOR_VERSION >= 3 || (__W32API_MAJOR_VERSION == 2 && __W32API_MINOR_VERSION >= 5)) -# ifdef _WIN32_WINNT -# undef _WIN32_WINNT -# endif -# define _WIN32_WINNT 0x0501 -# include <commctrl.h> -# endif +// minimum version for Windows XP is 0x501 +#if _WIN32_WINNT < 0x0501 +# undef _WIN32_WINNT +# define _WIN32_WINNT 0x0501 #endif - #include <uxtheme.h> QT_BEGIN_NAMESPACE diff --git a/src/gui/styles/qwindowsxpstyle_p.h b/src/gui/styles/qwindowsxpstyle_p.h index 0a13a52..4e8aa00 100644 --- a/src/gui/styles/qwindowsxpstyle_p.h +++ b/src/gui/styles/qwindowsxpstyle_p.h @@ -59,15 +59,10 @@ #include <qt_windows.h> // Note, these tests are duplicated in qwizard_win.cpp. -#ifdef Q_CC_GNU -# include <w32api.h> -# if (__W32API_MAJOR_VERSION >= 3 || (__W32API_MAJOR_VERSION == 2 && __W32API_MINOR_VERSION >= 5)) -# ifdef _WIN32_WINNT -# undef _WIN32_WINNT -# endif -# define _WIN32_WINNT 0x0501 -# include <commctrl.h> -# endif +// minimum version for Windows XP is 0x501 +#if _WIN32_WINNT < 0x0501 +# undef _WIN32_WINNT +# define _WIN32_WINNT 0x0501 #endif #include <uxtheme.h> |