summaryrefslogtreecommitdiff
path: root/Tools/DumpRenderTree
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-10-23 14:24:27 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-28 15:42:33 +0100
commit92a17ec3ed87d86eee5dbea238bab3c3a00396e0 (patch)
treea74f6b27f95aeeba5ff08c4350f075f0eba2adbf /Tools/DumpRenderTree
parentf65ce030982a2ee743bb8adfab4423499d81f379 (diff)
downloadqtwebkit-92a17ec3ed87d86eee5dbea238bab3c3a00396e0.tar.gz
Only use 64bit atomics when supported
To support Windows XP we must avoid using the 64bit variants of the atomicIncrement/atomicDecrement operations which are only supported from Windows 2003 and up. This patch rolls back the minimum Win32 API version to WinNT 5.1 (32bit WinXP), and adds a new flag to indicate the support of 64bit atomics. The new flag is now also used to support MIPS and other architectures without 64bit intrinsics, instead of hacking in poor support. This also extends the atomic operations to sparc64 which was previously skipped because it did not work with __exchange_and_add. Task-number: QTBUG-34271 Change-Id: I21b09df3cafb7f0987a2f44c89036ff34ed34aa0 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'Tools/DumpRenderTree')
-rw-r--r--Tools/DumpRenderTree/config.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Tools/DumpRenderTree/config.h b/Tools/DumpRenderTree/config.h
index 6424465dc..05b264ed1 100644
--- a/Tools/DumpRenderTree/config.h
+++ b/Tools/DumpRenderTree/config.h
@@ -75,12 +75,6 @@
#define WTF_USE_CFNETWORK 1
#endif
-#undef _WIN32_WINNT
-#define _WIN32_WINNT 0x0502
-
-#undef WINVER
-#define WINVER 0x0502
-
#undef _WINSOCKAPI_
#define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h
#endif // PLATFORM(WIN)