From a68dacd208a2685df462ebaad1ab651250998898 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 1 Sep 2003 18:54:44 +0000 Subject: #ifdefed out stuff that was removed in 0.37 svn path=/trunk/externals/unauthorized/; revision=924 --- audience~/audience~.c | 8 ++++++-- cooled~/cooled~.c | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/audience~/audience~.c b/audience~/audience~.c index cafc4f5..4340211 100644 --- a/audience~/audience~.c +++ b/audience~/audience~.c @@ -37,8 +37,7 @@ #include #include -#include - +#include "m_pd.h" #include "m_imp.h" #include "g_canvas.h" #include "t_tk.h" @@ -1050,8 +1049,13 @@ void audience_tilde_setup(void) audience_widgetbehavior.w_deletefn = audience_delete; audience_widgetbehavior.w_visfn = audience_vis; audience_widgetbehavior.w_clickfn = audience_click; +#if PD_MAJOR_VERSION == 0 +#if PD_MINOR_VERSION < 37 || !defined(PD_MINOR_VERSION) audience_widgetbehavior.w_propertiesfn = audience_properties; audience_widgetbehavior.w_savefn = audience_save; +#endif +#endif + class_setwidget(audience_class_tilde, &audience_widgetbehavior); class_sethelpsymbol(audience_class_tilde, gensym("help-audience~.pd")); } diff --git a/cooled~/cooled~.c b/cooled~/cooled~.c index 0be998d..d0fd468 100644 --- a/cooled~/cooled~.c +++ b/cooled~/cooled~.c @@ -1365,8 +1365,12 @@ void cooled_tilde_setup(void) cooled_widgetbehavior.w_deletefn = cooled_delete; cooled_widgetbehavior.w_visfn = cooled_vis; cooled_widgetbehavior.w_clickfn = cooled_click; +#if PD_MAJOR_VERSION == 0 +#if PD_MINOR_VERSION < 37 || !defined(PD_MINOR_VERSION) cooled_widgetbehavior.w_propertiesfn = cooled_properties; cooled_widgetbehavior.w_savefn = cooled_save; +#endif +#endif CLASS_MAINSIGNALIN( cooled_class, t_cooled, x_f ); class_addmethod(cooled_class, (t_method)cooled_dsp, gensym("dsp"), A_NULL); -- cgit v1.2.1