Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-05-09 22:02:18 +00:00
Code Issues Projects Releases Wiki Activity
musl/include/alloca.h

22 lines
242 B
C
Raw Normal View History

initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
#ifndef _ALLOCA_H
#define _ALLOCA_H
fix all missing instances of __cplusplus checks/extern "C" in headers patch by Arvid Picciani (aep)
2011-11-10 20:40:06 -05:00
#ifdef __cplusplus
extern "C" {
#endif
initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
#define __NEED_size_t
#include <bits/alltypes.h>
void *alloca(size_t);
alloca cannot be a function. #define it to the gcc builtin if possible 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.
2012-04-09 15:06:58 -04:00
#ifdef __GNUC__
#define alloca __builtin_alloca
#endif
fix all missing instances of __cplusplus checks/extern "C" in headers patch by Arvid Picciani (aep)
2011-11-10 20:40:06 -05:00
#ifdef __cplusplus
}
#endif
initial check-in, version 0.5.0
2011-02-12 00:22:29 -05:00
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 1114ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API