diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-05-17 05:41:42 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-05-17 05:41:42 +0000 |
commit | 5e576318cdb5628381e4082c3f4a29c1e97f27a8 (patch) | |
tree | de6aec127e4f4e052838b25b7d6618985b8f36ff /lib/fnmatch.c | |
parent | d175970f402a07706f7cf82b032be5037b2cebb5 (diff) | |
download | gnulib-5e576318cdb5628381e4082c3f4a29c1e97f27a8.tar.gz |
alloca cleanup: always include <alloca.h>.
Diffstat (limited to 'lib/fnmatch.c')
-rw-r--r-- | lib/fnmatch.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/fnmatch.c b/lib/fnmatch.c index d0cd8cdd79..b9b0598340 100644 --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -24,29 +24,13 @@ # define _GNU_SOURCE 1 #endif -#ifdef __GNUC__ -# define alloca __builtin_alloca -# define HAVE_ALLOCA 1 -#else -# if defined HAVE_ALLOCA_H || defined _LIBC -# include <alloca.h> -# else -# ifdef _AIX - # pragma alloca -# else -# ifndef alloca -char *alloca (); -# endif -# endif -# endif -#endif - #if ! defined __builtin_expect && __GNUC__ < 3 # define __builtin_expect(expr, expected) (expr) #endif #include <fnmatch.h> +#include <alloca.h> #include <assert.h> #include <ctype.h> #include <errno.h> |