26f2bfde03
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28810 a1c6a512-1295-4272-9138-f99709370657
23 lines
326 B
C
23 lines
326 B
C
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "mikmod.h"
|
|
|
|
#undef strdup
|
|
|
|
char* strdup(const char *__s)
|
|
{
|
|
char *charptr;
|
|
|
|
if (!__s)
|
|
return NULL;
|
|
|
|
charptr=(char *)MikMod_malloc(sizeof(char) * (strlen(__s) + 1));
|
|
if (charptr)
|
|
strcpy(charptr, __s);
|
|
|
|
return charptr;
|
|
}
|