0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 20:56:19 +00:00
termux-packages/disabled-packages/qt5-qtwebkit/remove-self-defined-cxx14-stuffs.patch
Fredrik Fornwall 352a790d2f rmpkg(x11/{qt5-qtwebkit,olivia,phantomjs,trojita,wkhtmltopdf})
QtWebKit is unmaintained and insecure with multiple remote code
execution vulnerabilities - see:
https://blogs.gnome.org/mcatanzaro/2022/11/04/stop-using-qtwebkit/
2024-10-20 12:23:45 +02:00

21 lines
569 B
Diff

They are conflict with libcxx headers.
--- a/Source/WTF/wtf/StdLibExtras.h
+++ b/Source/WTF/wtf/StdLibExtras.h
@@ -291,6 +291,7 @@
// This adds various C++14 features for versions of the STL that may not yet have them.
namespace std {
+#if __cplusplus < 201300
// MSVC 2013 supports std::make_unique already.
#if !defined(_MSC_VER) || _MSC_VER < 1800
template<class T> struct _Unique_if {
@@ -371,6 +372,7 @@
}
}
#endif
+#endif
template<WTF::CheckMoveParameterTag, typename T>
ALWAYS_INLINE constexpr typename remove_reference<T>::type&& move(T&& value)