forked from enlightenment/enlightenment
add strdupa/strndupa definitions for vtorri
SVN revision: 74260
This commit is contained in:
parent
5470921bc8
commit
3476abe5a4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue