aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-09-01 18:54:44 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-09-01 18:54:44 +0000
commita68dacd208a2685df462ebaad1ab651250998898 (patch)
treefdc8b5e768fee29b2398c61ff0e211e69bb40577
parent1719a56dc3b872e8238b8ea945b5a1f934bde031 (diff)
#ifdefed out stuff that was removed in 0.37
svn path=/trunk/externals/unauthorized/; revision=924
-rw-r--r--audience~/audience~.c8
-rw-r--r--cooled~/cooled~.c4
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 <math.h>
#include <ctype.h>
-#include <m_pd.h>
-
+#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);