aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--hexloader.c5
2 files changed, 7 insertions, 1 deletions
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 <stdio.h>