Use __builtin_alloc() with pcc.

This commit is contained in:
gmcgarry 2008-06-21 00:58:00 +00:00
parent 8cb6efd4df
commit 79ae39b7d3
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: stdlib.h,v 1.84 2008/04/07 12:24:52 yamt Exp $ */
/* $NetBSD: stdlib.h,v 1.85 2008/06/21 00:58:00 gmcgarry Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -242,6 +242,8 @@ int posix_memalign(void **, size_t, size_t);
#if defined(alloca) && (alloca == __builtin_alloca) && \
defined(__GNUC__) && (__GNUC__ < 2)
void *alloca(int); /* built-in for gcc */
#elif defined(__PCC__)
#define alloca(size) __builtin_alloca(size)
#else
void *alloca(size_t);
#endif /* __GNUC__ */