Use __builtin_alloc() with pcc.
This commit is contained in:
parent
8cb6efd4df
commit
79ae39b7d3
|
@ -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
|
* Copyright (c) 1990, 1993
|
||||||
|
@ -242,6 +242,8 @@ int posix_memalign(void **, size_t, size_t);
|
||||||
#if defined(alloca) && (alloca == __builtin_alloca) && \
|
#if defined(alloca) && (alloca == __builtin_alloca) && \
|
||||||
defined(__GNUC__) && (__GNUC__ < 2)
|
defined(__GNUC__) && (__GNUC__ < 2)
|
||||||
void *alloca(int); /* built-in for gcc */
|
void *alloca(int); /* built-in for gcc */
|
||||||
|
#elif defined(__PCC__)
|
||||||
|
#define alloca(size) __builtin_alloca(size)
|
||||||
#else
|
#else
|
||||||
void *alloca(size_t);
|
void *alloca(size_t);
|
||||||
#endif /* __GNUC__ */
|
#endif /* __GNUC__ */
|
||||||
|
|
Loading…
Reference in New Issue