diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-12 00:37:42 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-12 00:37:42 +0000 |
commit | c97480f11bdfdc3cbb867b8127074bcb6b047024 (patch) | |
tree | 885dff3c4d9f46567af438af0e266acdc932f281 /common/glib-ectomy.h | |
parent | b6f6c5cf2f85f27b277b891acf0a22c4a068bbbe (diff) |
Allow compilation against GLib
Diffstat (limited to 'common/glib-ectomy.h')
-rw-r--r-- | common/glib-ectomy.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/glib-ectomy.h b/common/glib-ectomy.h index 411cc25f..8502deb5 100644 --- a/common/glib-ectomy.h +++ b/common/glib-ectomy.h @@ -1,6 +1,12 @@ #ifndef __GLIB_ECTOMY_H #define __GLIB_ECTOMY_H +#ifdef HAVE_GLIB +#include <glib.h> +#define g_timeout_remove g_source_remove +#define g_io_remove_watch g_source_remove +#else + #include <stdlib.h> #include <sys/poll.h> @@ -106,4 +112,6 @@ gboolean g_utf8_validate(const gchar *str, gssize max_len, const gchar **end); #define g_main_quit(loop) g_main_loop_quit(loop) #define g_main_unref(loop) g_main_loop_unref(loop) +#endif + #endif /* __GLIB_ECTOMY_H */ |