summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-11-05 19:12:23 +0000
committerThomas Martitz <kugel@rockbox.org>2010-11-05 19:12:23 +0000
commit5411e14c57185b2b33fbfbb7ff7fec8ca2700551 (patch)
tree41149a1100c3ba708e0065cd7409c2e14ac976b2 /lib
parentd98f2929e9c07505056d846d1d309f1e16694ce7 (diff)
downloadrockbox-5411e14c57185b2b33fbfbb7ff7fec8ca2700551.tar.gz
rockbox-5411e14c57185b2b33fbfbb7ff7fec8ca2700551.zip
Undo the part of r28480 that caused the simulator to also use host malloc.
We want simulators to simulate target code where possible, that includes memory constraints and memory allocation schemes. It also removed the sim's ability to show the theme's ram usage. Use malloc only in application builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28498 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'lib')
-rw-r--r--lib/skin_parser/skin_buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/skin_parser/skin_buffer.c b/lib/skin_parser/skin_buffer.c
index 05a46658d4..0045b3c4c7 100644
--- a/lib/skin_parser/skin_buffer.c
+++ b/lib/skin_parser/skin_buffer.c
@@ -46,11 +46,11 @@
#ifdef ROCKBOX
#include "config.h"
-# if (CONFIG_PLATFORM&PLATFORM_HOSTED)
+#ifdef APPLICATION
# define USE_HOST_MALLOC
-# else
+#else
# define USE_ROCKBOX_ALLOC
-# endif
+#endif
#endif