summaryrefslogtreecommitdiffstats
path: root/polyp/glib-mainloop.h
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/glib-mainloop.h')
-rw-r--r--polyp/glib-mainloop.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/polyp/glib-mainloop.h b/polyp/glib-mainloop.h
index 1fc7f64a..afc83be2 100644
--- a/polyp/glib-mainloop.h
+++ b/polyp/glib-mainloop.h
@@ -37,7 +37,12 @@ PA_C_DECL_BEGIN
struct pa_glib_mainloop;
/** Create a new GLIB main loop object for the specified GLIB main loop context. If c is NULL the default context is used. */
+#if GLIB_MAJOR_VERSION >= 2
struct pa_glib_mainloop *pa_glib_mainloop_new(GMainContext *c);
+#else
+struct pa_glib_mainloop *pa_glib_mainloop_new(void);
+#endif
+
/** Free the GLIB main loop object */
void pa_glib_mainloop_free(struct pa_glib_mainloop* g);