Browse Source

pulseaudio: Added typedef needed for compat with ancient Pulse installs.

Ryan C. Gordon 1 năm trước cách đây
mục cha
commit
a2c5dc6507
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/audio/pulseaudio/SDL_pulseaudio.c

+ 4 - 0
src/audio/pulseaudio/SDL_pulseaudio.c

@@ -35,6 +35,10 @@
 #include "SDL_pulseaudio.h"
 #include "../../thread/SDL_systhread.h"
 
+#if (PA_PROTOCOL_VERSION < 28)
+typedef void (*pa_operation_notify_cb_t) (pa_operation *o, void *userdata);
+#endif
+
 /* should we include monitors in the device list? Set at SDL_Init time */
 static SDL_bool include_monitors = SDL_FALSE;