mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
NOT IN BUILD. Added strdup to make Mac standalone js engine work again
This commit is contained in:
parent
4812888c28
commit
0a8aea9072
@ -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…
Reference in New Issue
Block a user