remove __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS checks in stdint.h
[musl] / include / alloca.h
index ac78e46..d2e6f1c 100644 (file)
@@ -1,9 +1,21 @@
 #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