diff options
author | Samuel Gaist <samuel.gaist@edeltech.ch> | 2014-06-01 22:03:13 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-06-02 18:16:03 (GMT) |
commit | 17c236341fe9ef2436321a8e0f3bb456bea31524 (patch) | |
tree | c58f114139ef78d9b413f818caa8008126f828d3 /src/gui | |
parent | cbd1f795bd7a62bf7cb0587c371df41f135e7ca4 (diff) | |
download | Qt-17c236341fe9ef2436321a8e0f3bb456bea31524.zip Qt-17c236341fe9ef2436321a8e0f3bb456bea31524.tar.gz Qt-17c236341fe9ef2436321a8e0f3bb456bea31524.tar.bz2 |
QClipboard Windows debugging: fix compilation with VS2005.
This patch based on Qt Creator allows Qt 4 to be built using VS2005
[ChangeLog][Windows] Fixes build with MSVC 2005
Task-number: QTBUG-39133
Change-Id: I413beb063b5d1f458cfa26f54f6bbd2de9240380
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qclipboard_win.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/kernel/qclipboard_win.cpp b/src/gui/kernel/qclipboard_win.cpp index e7c5155..235ec1d 100644 --- a/src/gui/kernel/qclipboard_win.cpp +++ b/src/gui/kernel/qclipboard_win.cpp @@ -300,7 +300,7 @@ void QClipboard::clear(Mode mode) #endif } -#if !defined(Q_OS_WINCE) && defined(Q_CC_MSVC) +#if !defined(Q_OS_WINCE) && defined(Q_CC_MSVC) && WINVER > 0x0501 static bool isProcessBeingDebugged(HWND hwnd) { DWORD pid = 0; @@ -314,9 +314,9 @@ static bool isProcessBeingDebugged(HWND hwnd) CloseHandle(processHandle); return debugged != FALSE; } -#else // !defined(Q_OS_WINCE) && defined(Q_CC_MSVC) +#else // !defined(Q_OS_WINCE) && defined(Q_CC_MSVC) && WINVER > 0x0501 static bool isProcessBeingDebugged(HWND) { return false; } -#endif // defined(Q_OS_WINCE) || !defined(Q_CC_MSVC) +#endif // defined(Q_OS_WINCE) || !defined(Q_CC_MSVC) && WINVER > 0x0501 bool QClipboard::event(QEvent *e) { |