Skip to content

Commit a0dd007

Browse files
committed
stickynotes: Fix unexpected crashes building since glib 2.75.0
It reverts glib commit: https://gitlab.gnome.org/GNOME/glib/-/commit/b8e1ecdd6bfd6ff00b7b70f6177549f3a8d3cba3
1 parent b56d4cf commit a0dd007

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stickynotes/stickynotes.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626

2727
#include <ctksourceview/ctksource.h>
2828

29+
#ifndef G_DISABLE_CAST_CHECKS
30+
# define _G_TYPE_CIC(ip, gt, ct) \
31+
((ct*) (void *) g_type_check_instance_cast ((GTypeInstance*) ip, gt))
32+
# define _G_TYPE_CCC(cp, gt, ct) \
33+
((ct*) (void *) g_type_check_class_cast ((GTypeClass*) cp, gt))
34+
#endif
35+
2936
typedef struct
3037
{
3138
CtkWidget *w_window; /* Sticky Note window */

0 commit comments

Comments
 (0)