diff options
Diffstat (limited to 'apps/codecs/lib')
-rw-r--r-- | apps/codecs/lib/SOURCES | 2 | ||||
-rw-r--r-- | apps/codecs/lib/tlsf/src/tlsf.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/codecs/lib/SOURCES b/apps/codecs/lib/SOURCES index da77f97d30..49e744721d 100644 --- a/apps/codecs/lib/SOURCES +++ b/apps/codecs/lib/SOURCES | |||
@@ -24,6 +24,6 @@ setjmp_cf.S | |||
24 | setjmp_mips.S | 24 | setjmp_mips.S |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #elif defined(SIMULATOR) && defined(__APPLE__) | 27 | #elif (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__) |
28 | osx.dummy.c | 28 | osx.dummy.c |
29 | #endif | 29 | #endif |
diff --git a/apps/codecs/lib/tlsf/src/tlsf.c b/apps/codecs/lib/tlsf/src/tlsf.c index 570e472607..87f8d262ee 100644 --- a/apps/codecs/lib/tlsf/src/tlsf.c +++ b/apps/codecs/lib/tlsf/src/tlsf.c | |||
@@ -104,6 +104,7 @@ | |||
104 | #include <sys/mman.h> | 104 | #include <sys/mman.h> |
105 | #endif | 105 | #endif |
106 | 106 | ||
107 | #include "config.h" | ||
107 | #include "tlsf.h" | 108 | #include "tlsf.h" |
108 | 109 | ||
109 | #if !defined(__GNUC__) | 110 | #if !defined(__GNUC__) |
@@ -164,7 +165,8 @@ | |||
164 | #define PAGE_SIZE (getpagesize()) | 165 | #define PAGE_SIZE (getpagesize()) |
165 | #endif | 166 | #endif |
166 | 167 | ||
167 | #if defined(ROCKBOX) && defined(SIMULATOR) || !defined(ROCKBOX) | 168 | #if defined(ROCKBOX) && (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(DEBUG) \ |
169 | || !defined(ROCKBOX) | ||
168 | int printf(const char* fmt, ...); | 170 | int printf(const char* fmt, ...); |
169 | #define PRINT_MSG(fmt, args...) printf(fmt, ## args) | 171 | #define PRINT_MSG(fmt, args...) printf(fmt, ## args) |
170 | #define ERROR_MSG(fmt, args...) printf(fmt, ## args) | 172 | #define ERROR_MSG(fmt, args...) printf(fmt, ## args) |