]> code.delx.au - pulseaudio/blobdiff - polyp/glib-mainloop.h
fix public= on native and esound protocol
[pulseaudio] / polyp / glib-mainloop.h
index 1fc7f64aaa10656513a832bb58f916f37a1c6488..afc83be2623ccb09d56bb06f746482ba3704c6cd 100644 (file)
@@ -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);