aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-05-20 07:11:30 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-05-20 07:11:30 +0000
commit573bb9189c42b9c7c21c0faa06dbd3c2c6c6de17 (patch)
tree31a262df53f6a2002fe728c42a73a9c80a14b6e4
parente9ab52c0aab6467ef23f702945a959d45eee9319 (diff)
added magic for MISSING_LOADER_T
svn path=/trunk/externals/loaders/hexloader/; revision=11468
-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>