Ticket #57751: patch-src_3rdparty_javascriptcore_JavaScriptCore_wtf_HashTable_h

File patch-src_3rdparty_javascriptcore_JavaScriptCore_wtf_HashTable_h, 653 bytes (added by devernay (Frédéric Devernay), 5 years ago)
Line 
1$OpenBSD$
2
3Disable QTWTF::swap to prevent conflict with std::swap in gcc 6.
4
5Index: src/3rdparty/javascriptcore/JavaScriptCore/wtf/HashTable.h
6--- src/3rdparty/javascriptcore/JavaScriptCore/wtf/HashTable.h.orig
7+++ src/3rdparty/javascriptcore/JavaScriptCore/wtf/HashTable.h
8@@ -257,7 +257,7 @@ namespace WTF {
9 
10     using std::swap;
11 
12-#if !COMPILER(MSVC) && !OS(QNX) && !defined(_LIBCPP_VERSION)
13+#if 0 && !COMPILER(MSVC) && !OS(QNX) && !defined(_LIBCPP_VERSION)
14     // The Dinkumware C++ library (used by MSVC and QNX) and clang's libc++ have a swap for pairs defined.
15 
16     // swap pairs by component, in case of pair members that specialize swap