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:
parent
2e22393c4b
commit
cc5a802b0d
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue