Mercurial > emacs
comparison src/config.in @ 111613:8a76f3e33a5a
Backport fix for Bug#6170 from trunk.
Fix alloca definition when using gcc on non-gnu systems.
* configure.in: Use the code sequence indicated by "info autoconf"
for alloca (bug#6170).
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 13 Nov 2010 12:22:52 -0500 |
parents | 998fccafba7a |
children | 75b974985fca |
comparison
equal
deleted
inserted
replaced
111612:2529e302a86e | 111613:8a76f3e33a5a |
---|---|
1176 #include "strings.h" /* May be needed for bcopy & al. */ | 1176 #include "strings.h" /* May be needed for bcopy & al. */ |
1177 #endif | 1177 #endif |
1178 #ifdef HAVE_STDLIB_H | 1178 #ifdef HAVE_STDLIB_H |
1179 #include <stdlib.h> | 1179 #include <stdlib.h> |
1180 #endif | 1180 #endif |
1181 #ifndef __GNUC__ | 1181 #ifdef HAVE_ALLOCA_H |
1182 # ifdef HAVE_ALLOCA_H | 1182 # include <alloca.h> |
1183 # include <alloca.h> | 1183 #elif defined __GNUC__ |
1184 # else /* AIX files deal with #pragma. */ | 1184 # define alloca __builtin_alloca |
1185 # ifndef alloca /* predefined by HP cc +Olibcalls */ | 1185 #elif defined _AIX |
1186 char *alloca (); | 1186 # define alloca __alloca |
1187 # endif | 1187 #else |
1188 # endif /* HAVE_ALLOCA_H */ | 1188 # include <stddef.h> |
1189 #endif /* __GNUC__ */ | 1189 # ifdef __cplusplus |
1190 extern "C" | |
1191 # endif | |
1192 void *alloca (size_t); | |
1193 #endif | |
1190 #ifndef HAVE_SIZE_T | 1194 #ifndef HAVE_SIZE_T |
1191 typedef unsigned size_t; | 1195 typedef unsigned size_t; |
1192 #endif | 1196 #endif |
1193 #endif /* NOT_C_CODE */ | 1197 #endif /* NOT_C_CODE */ |
1194 | 1198 |