summaryrefslogtreecommitdiffstats
path: root/source/l/glib2/glib.g_str_equal.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/glib2/glib.g_str_equal.diff')
-rw-r--r--source/l/glib2/glib.g_str_equal.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/l/glib2/glib.g_str_equal.diff b/source/l/glib2/glib.g_str_equal.diff
new file mode 100644
index 000000000..88fcdd3d9
--- /dev/null
+++ b/source/l/glib2/glib.g_str_equal.diff
@@ -0,0 +1,11 @@
+--- ./glib/ghash.h.orig 2022-11-24 06:29:05.000000000 -0600
++++ ./glib/ghash.h 2022-11-28 13:41:03.250650020 -0600
+@@ -162,7 +162,7 @@
+ gconstpointer v2);
+
+ /* Macro for optimization in the case it is not used as callback function */
+-#define g_str_equal(v1, v2) (strcmp ((gconstpointer) (v1), (gconstpointer) (v2)) == 0)
++#define g_str_equal(v1, v2) (strcmp ((const char*) (gconstpointer) (v1),(const char*) (gconstpointer) (v2)) == 0)
+
+ GLIB_AVAILABLE_IN_ALL
+ guint g_str_hash (gconstpointer v);