diff options
-rw-r--r-- | apps/plugin.c | 2 | ||||
-rw-r--r-- | apps/plugin.h | 2 | ||||
-rw-r--r-- | firmware/SOURCES | 10 | ||||
-rw-r--r-- | firmware/firmware.make | 5 |
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 | |||
21 | panic.c | 21 | panic.c |
22 | debug.c | 22 | debug.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__) | ||
26 | libc/errno.c | 27 | libc/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 */ |
28 | libc/sprintf.c | 29 | libc/sprintf.c |
29 | #endif /* !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) */ | 30 | #endif /* defined(__MINGW32__) || defined(__CYGWIN__) */ |
30 | libc/atoi.c | 31 | libc/atoi.c |
31 | libc/ctype.c | 32 | libc/ctype.c |
32 | libc/memcmp.c | 33 | libc/memcmp.c |
@@ -42,6 +43,9 @@ libc/strrchr.c | |||
42 | libc/strtok.c | 43 | libc/strtok.c |
43 | libc/strstr.c | 44 | libc/strstr.c |
44 | libc/mktime.c | 45 | libc/mktime.c |
46 | #endif /* !defined(SIMULATOR)*/ | ||
47 | |||
48 | /* Common */ | ||
45 | common/config.c | 49 | common/config.c |
46 | common/crc32.c | 50 | common/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 | ||
10 | INCLUDES += -I$(FIRMDIR)/libc/include -I$(FIRMDIR) -I$(FIRMDIR)/export -I$(FIRMDIR)/drivers -I$(FIRMDIR)/include | 10 | INCLUDES += -I$(FIRMDIR) -I$(FIRMDIR)/export -I$(FIRMDIR)/drivers -I$(FIRMDIR)/include |
11 | ifndef SIMVER | ||
12 | INCLUDES += -I$(FIRMDIR)/libc/include | ||
13 | endif | ||
11 | 14 | ||
12 | FIRMLIB_SRC += $(call preprocess, $(FIRMDIR)/SOURCES) | 15 | FIRMLIB_SRC += $(call preprocess, $(FIRMDIR)/SOURCES) |
13 | FIRMLIB_OBJ := $(call c2obj, $(FIRMLIB_SRC)) | 16 | FIRMLIB_OBJ := $(call c2obj, $(FIRMLIB_SRC)) |