From a2b76c71f48393a78f43606f2bbc34727901f2dd Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 2 Sep 2003 05:19:17 +0000 Subject: added #if's and minor tweaks to make things compile with pd 0.37 svn path=/trunk/externals/unauthorized/; revision=929 --- playlist/playlist.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'playlist') diff --git a/playlist/playlist.c b/playlist/playlist.c index a953b36..a79f4c4 100644 --- a/playlist/playlist.c +++ b/playlist/playlist.c @@ -742,8 +742,14 @@ void playlist_setup(void) playlist_widgetbehavior.w_deletefn = playlist_delete; playlist_widgetbehavior.w_visfn = playlist_vis; playlist_widgetbehavior.w_clickfn = playlist_click; + /* As of 0.37, the last two elements of t_widgetbehavoir */ + /* have been removed. */ +#if PD_MAJOR_VERSION == 0 +#if PD_MINOR_VERSION < 37 || !defined(PD_MINOR_VERSION) playlist_widgetbehavior.w_propertiesfn = playlist_properties; playlist_widgetbehavior.w_savefn = playlist_save; +#endif +#endif class_setwidget(playlist_class, &playlist_widgetbehavior); class_sethelpsymbol(playlist_class, gensym("help-playlist.pd")); } -- cgit v1.2.1