From 573bb9189c42b9c7c21c0faa06dbd3c2c6c6de17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 20 May 2009 07:11:30 +0000 Subject: added magic for MISSING_LOADER_T svn path=/trunk/externals/loaders/hexloader/; revision=11468 --- Makefile | 3 ++- hexloader.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6f9bdad..306a74e 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,8 @@ PDLIBDIR=$(PDROOT)/bin EXTENSION=$(MAKECMDGOALS) -DEFINES=-DPD -DMISSING_LOADER_T +#DEFINES=-DPD -DMISSING_LOADER_T +DEFINES=-DPD # if no filename-extension is supplied by the user # try to guess one, based on what "uname" tells us diff --git a/hexloader.c b/hexloader.c index 557da89..48c0c35 100644 --- a/hexloader.c +++ b/hexloader.c @@ -20,6 +20,11 @@ #if (PD_MINOR_VERSION >= 40) +#if (PD_MINOR_VERSION < 42) +// with 0.42 the loader_t made it into s_stuff.h +# define MISSING_LOADER_T 1 +#endif + #include "s_stuff.h" #include "g_canvas.h" #include -- cgit v1.2.1