NOT IN BUILD. Added strdup to make Mac standalone js engine work again
git-svn-id: svn://10.0.0.236/trunk@55008 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9056e8e1e9
commit
5697c39c4b
@ -103,6 +103,15 @@ FILE *gTestResultFile = NULL;
|
||||
#define isatty(f) 1
|
||||
#endif
|
||||
|
||||
char *strdup(const char *str)
|
||||
{
|
||||
char *copy = malloc(strlen(str)+1);
|
||||
if (copy)
|
||||
strcpy(copy, str);
|
||||
return copy;
|
||||
}
|
||||
|
||||
|
||||
#ifdef XP_MAC_MPW
|
||||
/* Macintosh MPW replacements for the ANSI routines. These translate LF's to CR's because
|
||||
the MPW libraries supplied by Metrowerks don't do that for some reason. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user