diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/pdbox/PDa/intern/intern_setup.c | 2 | ||||
-rw-r--r-- | apps/plugins/pdbox/PDa/src/d_imayer_fft.c | 1 | ||||
-rw-r--r-- | apps/plugins/pdbox/PDa/src/m_pd.h | 7 | ||||
-rw-r--r-- | apps/plugins/pdbox/PDa/src/makecostab.c | 1 | ||||
-rw-r--r-- | apps/plugins/pdbox/pdbox.make | 3 |
5 files changed, 12 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/intern/intern_setup.c b/apps/plugins/pdbox/PDa/intern/intern_setup.c index 95d29b8cf5..d89cf286bb 100644 --- a/apps/plugins/pdbox/PDa/intern/intern_setup.c +++ b/apps/plugins/pdbox/PDa/intern/intern_setup.c | |||
@@ -1,3 +1,5 @@ | |||
1 | #include "m_pd.h" | ||
2 | |||
1 | #ifndef ROCKBOX | 3 | #ifndef ROCKBOX |
2 | #include <stdio.h> | 4 | #include <stdio.h> |
3 | #endif | 5 | #endif |
diff --git a/apps/plugins/pdbox/PDa/src/d_imayer_fft.c b/apps/plugins/pdbox/PDa/src/d_imayer_fft.c index 3e07eac49e..a78b9370f4 100644 --- a/apps/plugins/pdbox/PDa/src/d_imayer_fft.c +++ b/apps/plugins/pdbox/PDa/src/d_imayer_fft.c | |||
@@ -9,6 +9,7 @@ | |||
9 | ** Computation: 2 *, 1 + per value. | 9 | ** Computation: 2 *, 1 + per value. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include "m_pd.h" | ||
12 | 13 | ||
13 | #include "m_fixed.h" | 14 | #include "m_fixed.h" |
14 | 15 | ||
diff --git a/apps/plugins/pdbox/PDa/src/m_pd.h b/apps/plugins/pdbox/PDa/src/m_pd.h index 49c0af9731..3dc4548781 100644 --- a/apps/plugins/pdbox/PDa/src/m_pd.h +++ b/apps/plugins/pdbox/PDa/src/m_pd.h | |||
@@ -12,6 +12,13 @@ extern "C" { | |||
12 | #define PD_MAJOR_VERSION 0 /* ... use these two instead. */ | 12 | #define PD_MAJOR_VERSION 0 /* ... use these two instead. */ |
13 | #define PD_MINOR_VERSION 37 | 13 | #define PD_MINOR_VERSION 37 |
14 | 14 | ||
15 | #ifdef ROCKBOX | ||
16 | #define FIXEDPOINT | ||
17 | #define STATIC | ||
18 | #define PD | ||
19 | #define USEAPI_ROCKBOX | ||
20 | #endif | ||
21 | |||
15 | /* old name for "MSW" flag -- we have to take it for the sake of many old | 22 | /* old name for "MSW" flag -- we have to take it for the sake of many old |
16 | "nmakefiles" for externs, which will define NT and not MSW */ | 23 | "nmakefiles" for externs, which will define NT and not MSW */ |
17 | #if defined(NT) && !defined(MSW) | 24 | #if defined(NT) && !defined(MSW) |
diff --git a/apps/plugins/pdbox/PDa/src/makecostab.c b/apps/plugins/pdbox/PDa/src/makecostab.c index 6b436b6e57..a57a8e8d1c 100644 --- a/apps/plugins/pdbox/PDa/src/makecostab.c +++ b/apps/plugins/pdbox/PDa/src/makecostab.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include "m_pd.h" | ||
1 | #include "m_fixed.h" | 2 | #include "m_fixed.h" |
2 | #include <math.h> | 3 | #include <math.h> |
3 | 4 | ||
diff --git a/apps/plugins/pdbox/pdbox.make b/apps/plugins/pdbox/pdbox.make index 7031717d38..7abb31f3bb 100644 --- a/apps/plugins/pdbox/pdbox.make +++ b/apps/plugins/pdbox/pdbox.make | |||
@@ -20,8 +20,7 @@ OTHER_SRC += $(PDBOX_SRC) | |||
20 | 20 | ||
21 | $(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ) $(CODECDIR)/libtlsf.a | 21 | $(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ) $(CODECDIR)/libtlsf.a |
22 | 22 | ||
23 | PDBOXFLAGS = $(PLUGINFLAGS) \ | 23 | PDBOXFLAGS = $(PLUGINFLAGS) |
24 | -DFIXEDPOINT -DSTATIC -DPD -DUSEAPI_ROCKBOX | ||
25 | 24 | ||
26 | # Compile PDBox with extra flags (adapted from ZXBox) | 25 | # Compile PDBox with extra flags (adapted from ZXBox) |
27 | $(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make | 26 | $(PDBOXBUILDDIR)/%.o: $(PDBOXSRCDIR)/%.c $(PDBOXSRCDIR)/pdbox.make |