diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-04-09 10:34:44 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-04-09 10:34:44 +0000 |
commit | 10c31a5881c3bdb9d5259170335d05d2c35ab0da (patch) | |
tree | 03971763b8101e995bfad4bf945371340081f684 /src/autoabstraction.c | |
parent | 1a33cfc4578680b75c875b097c7d2d5745c8843c (diff) |
removed the MISSING_LOADER_T define-quirk and instead check whether the Pd-version is at least 0.42;
remove the -export_dynamic compiler flag
svn path=/trunk/externals/iem/iemguts/; revision=10993
Diffstat (limited to 'src/autoabstraction.c')
-rw-r--r-- | src/autoabstraction.c | 15 |
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; |