diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/SOURCES | 2 | ||||
-rw-r--r-- | firmware/include/string-extra.h | 1 | ||||
-rw-r--r-- | firmware/include/strtok_r.h | 28 |
3 files changed, 30 insertions, 1 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index 16dc9ca608..68074dbbec 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -24,6 +24,7 @@ debug.c | |||
24 | /* Standard library */ | 24 | /* Standard library */ |
25 | #if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) | 25 | #if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) |
26 | libc/errno.c | 26 | libc/errno.c |
27 | libc/strtok.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 /* !SIMULATOR || __MINGW32__ || __CYGWIN__ */ | 30 | #endif /* !SIMULATOR || __MINGW32__ || __CYGWIN__ */ |
@@ -40,7 +41,6 @@ libc/strcmp.c | |||
40 | libc/strcpy.c | 41 | libc/strcpy.c |
41 | libc/strncmp.c | 42 | libc/strncmp.c |
42 | libc/strrchr.c | 43 | libc/strrchr.c |
43 | libc/strtok.c | ||
44 | libc/strstr.c | 44 | libc/strstr.c |
45 | libc/mktime.c | 45 | libc/mktime.c |
46 | #endif /* !defined(SIMULATOR)*/ | 46 | #endif /* !defined(SIMULATOR)*/ |
diff --git a/firmware/include/string-extra.h b/firmware/include/string-extra.h index 5fe5ab8119..16dd2fdccf 100644 --- a/firmware/include/string-extra.h +++ b/firmware/include/string-extra.h | |||
@@ -25,3 +25,4 @@ | |||
25 | #include "strlcat.h" | 25 | #include "strlcat.h" |
26 | #include "strcasecmp.h" | 26 | #include "strcasecmp.h" |
27 | #include "strcasestr.h" | 27 | #include "strcasestr.h" |
28 | #include "strtok_r.h" | ||
diff --git a/firmware/include/strtok_r.h b/firmware/include/strtok_r.h new file mode 100644 index 0000000000..f4727630fa --- /dev/null +++ b/firmware/include/strtok_r.h | |||
@@ -0,0 +1,28 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2010 Thomas Martitz | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | |||
23 | #ifndef __STRTOK_R_H__ | ||
24 | #define __STRTOK_R_H__ | ||
25 | #if defined(__MINGW32__) || defined(__CYGWIN__) | ||
26 | char *strtok_r(char *, const char *, char **); | ||
27 | #endif | ||
28 | #endif | ||