mirror of
git://git.musl-libc.org/musl
synced 2024-12-28 09:53:24 +00:00
d71d0805f9
gcc makes this mapping by default anyway, but it will be disabled by -fno-builtin (and presumably by -std=c99 or similar). for the main program the error will be reported by the linker, and the issue can easily be fixed, but for dynamic-loaded so files, the error cannot be detected until dlopen time, at which point it has become very obscure.
22 lines
242 B
C
22 lines
242 B
C
#ifndef _ALLOCA_H
|
|
#define _ALLOCA_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define __NEED_size_t
|
|
#include <bits/alltypes.h>
|
|
|
|
void *alloca(size_t);
|
|
|
|
#ifdef __GNUC__
|
|
#define alloca __builtin_alloca
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|