mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
[FIX_RED] strcmp missing on microtar.c ??
Change-Id: I55110433dac770896155061ad4572252a6f3a374
This commit is contained in:
parent
263fc8b98f
commit
58707b0429
1 changed files with 13 additions and 0 deletions
|
@ -25,6 +25,19 @@
|
|||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef strcmp
|
||||
#define strcmp my_strcmp
|
||||
static int my strcmp(const char *s1, const char *s2)
|
||||
{
|
||||
while (*s1 != '\0' && *s1 == *s2) {
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
|
||||
return ((*(unsigned char *) s1) - (*(unsigned char *) s2));
|
||||
}
|
||||
#endif /*FIX ME*/
|
||||
|
||||
#ifdef ROCKBOX
|
||||
/* Rockbox lacks strncpy in its libc */
|
||||
#define strncpy my_strncpy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue