diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2010-06-21 16:34:13 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2010-06-21 16:34:13 +0000 |
| commit | 3c78cb35e8681c6addf7302ed773677b8aa13edf (patch) | |
| tree | 635f50f36584dd57c890dccb0fb5968af1aa56e5 /apps/plugins/pdbox/PDa/src | |
| parent | 49dac9ae04df496e2c9b4aa387043aeb25ecbfde (diff) | |
| download | rockbox-3c78cb35e8681c6addf7302ed773677b8aa13edf.zip rockbox-3c78cb35e8681c6addf7302ed773677b8aa13edf.tar.gz rockbox-3c78cb35e8681c6addf7302ed773677b8aa13edf.tar.bz2 rockbox-3c78cb35e8681c6addf7302ed773677b8aa13edf.tar.xz | |
Remove plugin-specific defines from the pdbox makefile, and add them to m_pd.h, which is the global pdbox header. This makes sure that the defines are set during depency generation so dependencies are correct.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27016 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/src')
| -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 |
3 files changed, 9 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/d_imayer_fft.c b/apps/plugins/pdbox/PDa/src/d_imayer_fft.c index 3e07eac..a78b937 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 @@ ** Computation: 2 *, 1 + per value. */ +#include "m_pd.h" #include "m_fixed.h" diff --git a/apps/plugins/pdbox/PDa/src/m_pd.h b/apps/plugins/pdbox/PDa/src/m_pd.h index 49c0af9..3dc4548 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" { #define PD_MAJOR_VERSION 0 /* ... use these two instead. */ #define PD_MINOR_VERSION 37 +#ifdef ROCKBOX +#define FIXEDPOINT +#define STATIC +#define PD +#define USEAPI_ROCKBOX +#endif + /* old name for "MSW" flag -- we have to take it for the sake of many old "nmakefiles" for externs, which will define NT and not MSW */ #if defined(NT) && !defined(MSW) diff --git a/apps/plugins/pdbox/PDa/src/makecostab.c b/apps/plugins/pdbox/PDa/src/makecostab.c index 6b436b6..a57a8e8 100644 --- a/apps/plugins/pdbox/PDa/src/makecostab.c +++ b/apps/plugins/pdbox/PDa/src/makecostab.c @@ -1,3 +1,4 @@ +#include "m_pd.h" #include "m_fixed.h" #include <math.h> |