summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-03 19:00:29 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-03 19:00:29 +0000
commit851be21f671feb0bf41e1dcaaced4d7e2e5cf72c (patch)
treebb3e63faa8b858626dc627f481da4fccc515207c /apps
parent29b2a049de5c6a81c99ef3a2fb9b0e5fce57b86d (diff)
downloadrockbox-851be21f671feb0bf41e1dcaaced4d7e2e5cf72c.zip
rockbox-851be21f671feb0bf41e1dcaaced4d7e2e5cf72c.tar.gz
rockbox-851be21f671feb0bf41e1dcaaced4d7e2e5cf72c.tar.bz2
rockbox-851be21f671feb0bf41e1dcaaced4d7e2e5cf72c.tar.xz
system-arm.c/__div0 are for ARM native builds only
Android can now be built with CPU_ARM defined Needs investigation (and test_codec) to see if/how this helps git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27684 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs.c2
-rw-r--r--apps/codecs.h2
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs.c b/apps/codecs.c
index 29a6644..9e77dd9 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -119,7 +119,7 @@ struct codec_api ci = {
NULL, /* configure */
/* kernel/ system */
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
__div0,
#endif
PREFIX(sleep),
diff --git a/apps/codecs.h b/apps/codecs.h
index 7e4fe94..97b33ec 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -156,7 +156,7 @@ struct codec_api {
void (*configure)(int setting, intptr_t value);
/* kernel/ system */
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
void (*__div0)(void);
#endif
void (*sleep)(int ticks);
diff --git a/apps/plugin.c b/apps/plugin.c
index b3baea7..cc540cd 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -345,7 +345,7 @@ static const struct plugin_api rockbox_api = {
dir_exists,
/* kernel/ system */
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
__div0,
#endif
PREFIX(sleep),
diff --git a/apps/plugin.h b/apps/plugin.h
index 5ee18d0..624b703 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -450,7 +450,7 @@ struct plugin_api {
bool (*dir_exists)(const char *path);
/* kernel/ system */
-#ifdef CPU_ARM
+#if defined(CPU_ARM) && CONFIG_PLATFORM & PLATFORM_NATIVE
void (*__div0)(void);
#endif
void (*sleep)(int ticks);