diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index dd1153e2054..a829fdc35a8 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -35,15 +35,22 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 35 | 35 | ||
| 36 | #include "getopt.h" | 36 | #include "getopt.h" |
| 37 | 37 | ||
| 38 | #ifdef __GNUC__ | 38 | /* AIX requires this to be the first thing in the file. */ |
| 39 | #define alloca __builtin_alloca | 39 | #ifdef __GNUC__ |
| 40 | #else | 40 | #ifndef alloca |
| 41 | #ifdef sparc | 41 | #define alloca __builtin_alloca |
| 42 | #include <alloca.h> | ||
| 43 | #else | ||
| 44 | extern char *alloca (); | ||
| 45 | #endif | ||
| 46 | #endif | 42 | #endif |
| 43 | #else /* not __GNUC__ */ | ||
| 44 | #if HAVE_ALLOCA_H | ||
| 45 | #include <alloca.h> | ||
| 46 | #else /* not HAVE_ALLOCA_H */ | ||
| 47 | #ifdef _AIX | ||
| 48 | #pragma alloca | ||
| 49 | #else /* not _AIX */ | ||
| 50 | char *alloca (); | ||
| 51 | #endif /* not _AIX */ | ||
| 52 | #endif /* not HAVE_ALLOCA_H */ | ||
| 53 | #endif /* not __GNUC__ */ | ||
| 47 | 54 | ||
| 48 | extern char *malloc (), *realloc (); | 55 | extern char *malloc (), *realloc (); |
| 49 | extern char *getenv (); | 56 | extern char *getenv (); |