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 --- scratcher~/scratcher~.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scratcher~') diff --git a/scratcher~/scratcher~.c b/scratcher~/scratcher~.c index db37847..63ceb1b 100644 --- a/scratcher~/scratcher~.c +++ b/scratcher~/scratcher~.c @@ -778,8 +778,14 @@ void scratcher_tilde_setup(void) scratcher_widgetbehavior.w_deletefn = scratcher_delete; scratcher_widgetbehavior.w_visfn = scratcher_vis; scratcher_widgetbehavior.w_clickfn = scratcher_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) scratcher_widgetbehavior.w_propertiesfn = scratcher_properties; scratcher_widgetbehavior.w_savefn = scratcher_save; +#endif +#endif CLASS_MAINSIGNALIN( scratcher_class, t_scratcher, x_f ); class_addmethod(scratcher_class, (t_method)scratcher_dsp, gensym("dsp"), A_NULL); -- cgit v1.2.1