summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugin.c2
-rw-r--r--apps/plugin.h2
-rw-r--r--firmware/SOURCES10
-rw-r--r--firmware/firmware.make5
4 files changed, 15 insertions, 4 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index a1a68af6ba..1ab15f82f2 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -434,7 +434,9 @@ static const struct plugin_api rockbox_api = {
434 memset, 434 memset,
435 memcpy, 435 memcpy,
436 memmove, 436 memmove,
437#ifndef SIMULATOR
437 _ctype_, 438 _ctype_,
439#endif
438 atoi, 440 atoi,
439 strchr, 441 strchr,
440 strcat, 442 strcat,
diff --git a/apps/plugin.h b/apps/plugin.h
index 26d17a2637..584c146b94 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -548,7 +548,9 @@ struct plugin_api {
548 void* (*memset)(void *dst, int c, size_t length); 548 void* (*memset)(void *dst, int c, size_t length);
549 void* (*memcpy)(void *out, const void *in, size_t n); 549 void* (*memcpy)(void *out, const void *in, size_t n);
550 void* (*memmove)(void *out, const void *in, size_t n); 550 void* (*memmove)(void *out, const void *in, size_t n);
551#ifndef SIMULATOR
551 const unsigned char *_rbctype_; 552 const unsigned char *_rbctype_;
553#endif
552 int (*atoi)(const char *str); 554 int (*atoi)(const char *str);
553 char *(*strchr)(const char *s, int c); 555 char *(*strchr)(const char *s, int c);
554 char *(*strcat)(char *s1, const char *s2); 556 char *(*strcat)(char *s1, const char *s2);
diff --git a/firmware/SOURCES b/firmware/SOURCES
index b155a9f03d..3327fbbce6 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -21,12 +21,13 @@ timer.c
21panic.c 21panic.c
22debug.c 22debug.c
23 23
24/* Common */ 24/* Standard library */
25#if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) 25#if !defined(SIMULATOR)
26#if defined(__MINGW32__) || defined(__CYGWIN__)
26libc/errno.c 27libc/errno.c
27/* alsa on linux requires a more advanced sprintf, i.e. not ours */ 28/* alsa on linux requires a more advanced sprintf, i.e. not ours */
28libc/sprintf.c 29libc/sprintf.c
29#endif /* !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) */ 30#endif /* defined(__MINGW32__) || defined(__CYGWIN__) */
30libc/atoi.c 31libc/atoi.c
31libc/ctype.c 32libc/ctype.c
32libc/memcmp.c 33libc/memcmp.c
@@ -42,6 +43,9 @@ libc/strrchr.c
42libc/strtok.c 43libc/strtok.c
43libc/strstr.c 44libc/strstr.c
44libc/mktime.c 45libc/mktime.c
46#endif /* !defined(SIMULATOR)*/
47
48/* Common */
45common/config.c 49common/config.c
46common/crc32.c 50common/crc32.c
47#ifdef MI4_FORMAT 51#ifdef MI4_FORMAT
diff --git a/firmware/firmware.make b/firmware/firmware.make
index 115bfacad0..52b5a19cc6 100644
--- a/firmware/firmware.make
+++ b/firmware/firmware.make
@@ -7,7 +7,10 @@
7# $Id$ 7# $Id$
8# 8#
9 9
10INCLUDES += -I$(FIRMDIR)/libc/include -I$(FIRMDIR) -I$(FIRMDIR)/export -I$(FIRMDIR)/drivers -I$(FIRMDIR)/include 10INCLUDES += -I$(FIRMDIR) -I$(FIRMDIR)/export -I$(FIRMDIR)/drivers -I$(FIRMDIR)/include
11ifndef SIMVER
12INCLUDES += -I$(FIRMDIR)/libc/include
13endif
11 14
12FIRMLIB_SRC += $(call preprocess, $(FIRMDIR)/SOURCES) 15FIRMLIB_SRC += $(call preprocess, $(FIRMDIR)/SOURCES)
13FIRMLIB_OBJ := $(call c2obj, $(FIRMLIB_SRC)) 16FIRMLIB_OBJ := $(call c2obj, $(FIRMLIB_SRC))