1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

glib: workaround old glib without G_SOURCE_FUNC

This commit is contained in:
Andy Green 2021-01-05 09:04:08 +00:00
parent 2e22393c4b
commit cc5a802b0d

View file

@ -19,6 +19,10 @@
#include "private.h"
#if !defined(G_SOURCE_FUNC)
#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void)) (f))
#endif
typedef struct lws_glib_tag {
GSource *gs;
guint tag;