Package: webkit2gtk / 2.26.4-1~bpo9+3

is-same-v.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Subject: Define std::is_same_v and std::is_pod_v when using clang
Index: webkitgtk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp
===================================================================
--- webkitgtk.orig/Source/JavaScriptCore/runtime/JSGlobalObject.cpp
+++ webkitgtk/Source/JavaScriptCore/runtime/JSGlobalObject.cpp
@@ -229,6 +229,13 @@
 #include "JSCWrapperMap.h"
 #endif
 
+#if COMPILER(CLANG)
+namespace std {
+    template< class T, class U >
+    inline constexpr bool is_same_v = is_same<T, U>::value;
+}
+#endif
+
 namespace JSC {
 
 #define CHECK_FEATURE_FLAG_TYPE(capitalName, lowerName, properName, instanceType, jsName, prototypeBase, featureFlag) \
Index: webkitgtk/Source/JavaScriptCore/b3/B3Type.cpp
===================================================================
--- webkitgtk.orig/Source/JavaScriptCore/b3/B3Type.cpp
+++ webkitgtk/Source/JavaScriptCore/b3/B3Type.cpp
@@ -30,6 +30,13 @@
 
 #include <wtf/PrintStream.h>
 
+#if COMPILER(CLANG)
+namespace std {
+    template< class T >
+    inline constexpr bool is_pod_v = is_pod<T>::value;
+}
+#endif
+
 namespace WTF {
 
 using namespace JSC::B3;