aboutsummaryrefslogtreecommitdiff
path: root/src/autoabstraction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/autoabstraction.c')
-rw-r--r--src/autoabstraction.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/autoabstraction.c b/src/autoabstraction.c
index 50be5a7..9eec17d 100644
--- a/src/autoabstraction.c
+++ b/src/autoabstraction.c
@@ -44,11 +44,12 @@ static char*s_templatestring="#N canvas 0 0 450 300 10; #X vis 1;";
#if (PD_MINOR_VERSION >= 40)
-# define AUTOABSTRACTION_ENABLED
+# define AUTOABSTRACTION_ENABLED 1
#endif
#ifdef AUTOABSTRACTION_ENABLED
+
# include "s_stuff.h"
# include "g_canvas.h"
# include <stdio.h>
@@ -64,12 +65,12 @@ static char*s_templatestring="#N canvas 0 0 450 300 10; #X vis 1;";
# include <windows.h>
# endif
-# ifdef MISSING_LOADER_T
-/* definitions taken from s_loader.c, since they weren't in header orignally */
-typedef int (*loader_t)(t_canvas *canvas, char *classname);
-void sys_register_loader(loader_t loader);
-void class_set_extern_dir(t_symbol *s);
-# endif
+#if (PD_MINOR_VERSION < 42)
+ /* definitions taken from s_loader.c, since they weren't in header orignally */
+ typedef int (*loader_t)(t_canvas *canvas, char *classname);
+ void sys_register_loader(loader_t loader);
+ void class_set_extern_dir(t_symbol *s);
+#endif
static t_binbuf*s_bb=0;