diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-09-02 05:19:17 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-09-02 05:19:17 +0000 |
commit | a2b76c71f48393a78f43606f2bbc34727901f2dd (patch) | |
tree | 5eb3e2a78f1d72256a77b3fa2d4324feb1b33787 /probalizer | |
parent | b06d166030d3b24c432bcc0c1f4357dfc98db4e2 (diff) |
added #if's and minor tweaks to make things compile with pd 0.37
svn path=/trunk/externals/unauthorized/; revision=929
Diffstat (limited to 'probalizer')
-rw-r--r-- | probalizer/probalizer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/probalizer/probalizer.c b/probalizer/probalizer.c index b3efe1a..e789412 100644 --- a/probalizer/probalizer.c +++ b/probalizer/probalizer.c @@ -687,8 +687,14 @@ void probalizer_setup(void) probalizer_widgetbehavior.w_deletefn = probalizer_delete; probalizer_widgetbehavior.w_visfn = probalizer_vis; probalizer_widgetbehavior.w_clickfn = probalizer_click; + /* As of 0.37, the last two elements of t_widgetbehavoir */ + /* have been removed. <hans@eds.org> */ +#if PD_MAJOR_VERSION == 0 +#if PD_MINOR_VERSION < 37 || !defined(PD_MINOR_VERSION) probalizer_widgetbehavior.w_propertiesfn = probalizer_properties; probalizer_widgetbehavior.w_savefn = probalizer_save; +#endif +#endif class_setwidget(probalizer_class, &probalizer_widgetbehavior); class_sethelpsymbol(probalizer_class, gensym("help-probalizer.pd")); } |