Title: [243288] trunk/Tools
- Revision
- 243288
- Author
- [email protected]
- Date
- 2019-03-21 06:09:00 -0700 (Thu, 21 Mar 2019)
Log Message
Unreviewed. Fix GTK build with GLib < 2.58 after r243285.
Add g_assert_cmpfloat_with_epsilon macro if not defined.
* TestWebKitAPI/glib/WebKitGLib/TestMain.h:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (243287 => 243288)
--- trunk/Tools/ChangeLog 2019-03-21 12:14:04 UTC (rev 243287)
+++ trunk/Tools/ChangeLog 2019-03-21 13:09:00 UTC (rev 243288)
@@ -1,5 +1,13 @@
2019-03-21 Carlos Garcia Campos <[email protected]>
+ Unreviewed. Fix GTK build with GLib < 2.58 after r243285.
+
+ Add g_assert_cmpfloat_with_epsilon macro if not defined.
+
+ * TestWebKitAPI/glib/WebKitGLib/TestMain.h:
+
+2019-03-21 Carlos Garcia Campos <[email protected]>
+
[GTK][WPE] Add API to provide geolocation information
https://bugs.webkit.org/show_bug.cgi?id=195940
Modified: trunk/Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h (243287 => 243288)
--- trunk/Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h 2019-03-21 12:14:04 UTC (rev 243287)
+++ trunk/Tools/TestWebKitAPI/glib/WebKitGLib/TestMain.h 2019-03-21 13:09:00 UTC (rev 243288)
@@ -78,6 +78,19 @@
} \
} while (0)
+#if !defined(g_assert_cmpfloat_with_epsilon)
+#define g_assert_cmpfloat_with_epsilon(n1,n2,epsilon) \
+ do { \
+ double __n1 = (n1); \
+ double __n2 = (n2); \
+ double __epsilon = (epsilon); \
+ if ((((__n1) > (__n2) ? (__n1) - (__n2) : (__n2) - (__n1)) < (__epsilon))) ; \
+ else { \
+ g_assertion_message_cmpnum (G_LOG_DOMAIN, __FILE__, __LINE__, \
+ G_STRFUNC, #n1 " == " #n2 " (+/- " #epsilon ")", __n1, "==", __n2, 'f'); \
+ } \
+ } while(0)
+#endif
class Test {
public:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes