diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | hexloader.c | 5 |
2 files changed, 7 insertions, 1 deletions
@@ -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 <stdio.h> |