Add normal alloca() definition and implement a strdupa and friends

Change-Id: I21c9c21fd664fb11bc8496ace4a389f535a030d6
This commit is contained in:
Michael Sevakis 2014-08-26 23:11:34 -04:00
parent 77b3625763
commit 17a007bc60
3 changed files with 50 additions and 1 deletions

View file

@ -31,6 +31,11 @@ void free(void *);
void *realloc(void *, size_t);
int atexit(void (*)(void));
#ifdef __GNUC__
# undef alloca
# define alloca(size) __builtin_alloca (size)
#endif /* GCC. */
#define RAND_MAX INT_MAX
void srand(unsigned int seed);