add strdupa/strndupa definitions for vtorri

SVN revision: 74260
This commit is contained in:
Mike Blumenkrantz 2012-07-21 07:24:03 +00:00
parent 5470921bc8
commit 3476abe5a4
1 changed files with 9 additions and 0 deletions

View File

@ -147,6 +147,15 @@ void *alloca (size_t);
# define EINTERN
# endif
#ifndef strdupa
# define strdupa(str) strcpy(alloca(strlen(str) + 1), str)
#endif
#ifndef strndupa
# define strndupa(str, len) strncpy(alloca(len + 1), str, len)
#endif
typedef struct _E_Before_Idler E_Before_Idler;
typedef struct _E_Rect E_Rect;