aboutsummaryrefslogtreecommitdiff
path: root/sonogram~
diff options
context:
space:
mode:
Diffstat (limited to 'sonogram~')
-rw-r--r--sonogram~/sonogram~-joge.c6
-rw-r--r--sonogram~/sonogram~-yves.c6
-rw-r--r--sonogram~/sonogram~.c6
3 files changed, 18 insertions, 0 deletions
diff --git a/sonogram~/sonogram~-joge.c b/sonogram~/sonogram~-joge.c
index fc70b73..b6e6c97 100644
--- a/sonogram~/sonogram~-joge.c
+++ b/sonogram~/sonogram~-joge.c
@@ -1992,8 +1992,14 @@ void sonogram_tilde_setup(void)
sonogram_widgetbehavior.w_deletefn = sonogram_delete;
sonogram_widgetbehavior.w_visfn = sonogram_vis;
sonogram_widgetbehavior.w_clickfn = sonogram_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)
sonogram_widgetbehavior.w_propertiesfn = NULL;
sonogram_widgetbehavior.w_savefn = sonogram_save;
+#endif
+#endif
CLASS_MAINSIGNALIN( sonogram_class, t_sonogram, x_f );
class_addmethod(sonogram_class, (t_method)sonogram_dsp, gensym("dsp"), A_NULL);
diff --git a/sonogram~/sonogram~-yves.c b/sonogram~/sonogram~-yves.c
index 4459d9e..6d647ac 100644
--- a/sonogram~/sonogram~-yves.c
+++ b/sonogram~/sonogram~-yves.c
@@ -1963,8 +1963,14 @@ void sonogram_tilde_setup(void)
sonogram_widgetbehavior.w_deletefn = sonogram_delete;
sonogram_widgetbehavior.w_visfn = sonogram_vis;
sonogram_widgetbehavior.w_clickfn = sonogram_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)
sonogram_widgetbehavior.w_propertiesfn = NULL;
sonogram_widgetbehavior.w_savefn = sonogram_save;
+#endif
+#endif
CLASS_MAINSIGNALIN( sonogram_class, t_sonogram, x_f );
class_addmethod(sonogram_class, (t_method)sonogram_dsp, gensym("dsp"), A_NULL);
diff --git a/sonogram~/sonogram~.c b/sonogram~/sonogram~.c
index 844f71f..4d9dfb1 100644
--- a/sonogram~/sonogram~.c
+++ b/sonogram~/sonogram~.c
@@ -2028,8 +2028,14 @@ void sonogram_tilde_setup(void)
sonogram_widgetbehavior.w_deletefn = sonogram_delete;
sonogram_widgetbehavior.w_visfn = sonogram_vis;
sonogram_widgetbehavior.w_clickfn = sonogram_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)
sonogram_widgetbehavior.w_propertiesfn = NULL;
sonogram_widgetbehavior.w_savefn = sonogram_save;
+#endif
+#endif
CLASS_MAINSIGNALIN( sonogram_class, t_sonogram, x_f );
class_addmethod(sonogram_class, (t_method)sonogram_dsp, gensym("dsp"), A_NULL);