diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2010-05-14 22:57:52 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2010-05-14 22:57:52 +0000 |
commit | 530c25130fb561a1260d32b756d008385d7e5a69 (patch) | |
tree | 318db0e5294d9baceeff060df29f2ac47626ffb4 /firmware | |
parent | 759cfece4bb96547f34bf52ceffd0412599d6362 (diff) |
Make the sim buildable with mingw again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26037 a1c6a512-1295-4272-9138-f99709370657
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 /* Standard library */ #if !defined(SIMULATOR) || defined(__MINGW32__) || defined(__CYGWIN__) libc/errno.c +libc/strtok.c /* alsa on linux requires a more advanced sprintf, i.e. not ours */ libc/sprintf.c #endif /* !SIMULATOR || __MINGW32__ || __CYGWIN__ */ @@ -40,7 +41,6 @@ libc/strcmp.c libc/strcpy.c libc/strncmp.c libc/strrchr.c -libc/strtok.c libc/strstr.c libc/mktime.c #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 @@ #include "strlcat.h" #include "strcasecmp.h" #include "strcasestr.h" +#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 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2010 Thomas Martitz + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + + +#ifndef __STRTOK_R_H__ +#define __STRTOK_R_H__ +#if defined(__MINGW32__) || defined(__CYGWIN__) +char *strtok_r(char *, const char *, char **); +#endif +#endif |