diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 4 | ||||
-rw-r--r-- | src/autoabstraction.c | 15 |
2 files changed, 10 insertions, 9 deletions
diff --git a/src/Makefile b/src/Makefile index 13340bf..2598b81 100644 --- a/src/Makefile +++ b/src/Makefile @@ -68,11 +68,11 @@ TARGETS=$(SOURCES:.c=.$(EXTENSION)) l_ia64 l_i386 pd_linux: $(TARGETS) -LINUXCFLAGS = -DPD -DMISSING_LOADER_T -g -O2 -funroll-loops -fomit-frame-pointer -fPIC \ +LINUXCFLAGS = -DPD -g -O2 -funroll-loops -fomit-frame-pointer -fPIC \ -Wall -W -Wshadow -Wstrict-prototypes \ -Wno-unused -Wno-parentheses -Wno-switch -LINUXLDFLAGS = -export_dynamic -shared -lc -lm +LINUXLDFLAGS = -shared -lc -lm LINUXINCLUDE = -I$(PDSRCDIR) 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; |