summaryrefslogtreecommitdiff
path: root/src/vte-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vte-private.h')
-rw-r--r--src/vte-private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vte-private.h b/src/vte-private.h
index d8fb11a8..b6867f10 100644
--- a/src/vte-private.h
+++ b/src/vte-private.h
@@ -125,6 +125,16 @@ gboolean _vte_terminal_size_to_grid_size(VteTerminal *terminal,
gboolean _vte_terminal_is_word_char(VteTerminal *terminal, gunichar c);
+static inline bool
+_vte_double_equal(double a,
+ double b)
+{
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wfloat-equal"
+ return a == b;
+#pragma GCC diagnostic pop
+}
+
G_END_DECLS
#endif