21 |
#include "config.h" |
#include "config.h" |
22 |
#endif |
#endif |
23 |
|
|
|
#ifdef _AIX |
|
|
#pragma alloca |
|
|
#else |
|
|
# ifndef allocax /* predefined by HP cc +Olibcalls */ |
|
|
# ifdef __GNUC__ |
|
|
# define alloca(size) __builtin_alloca (size) |
|
|
# else |
|
|
# if HAVE_ALLOCA_H |
|
|
# include <alloca.h> |
|
|
# else |
|
|
# ifdef __hpux |
|
|
void *alloca (); |
|
|
# else |
|
|
# if !defined __OS2__ && !defined WIN32 |
|
|
char *alloca (); |
|
|
# else |
|
|
# include <malloc.h> /* OS/2 defines alloca in here */ |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
#endif |
|
|
|
|
24 |
#ifdef _LIBC |
#ifdef _LIBC |
25 |
/* We have to keep the namespace clean. */ |
/* We have to keep the namespace clean. */ |
26 |
# define regfree(preg) __regfree (preg) |
# define regfree(preg) __regfree (preg) |
46 |
# include "../locale/localeinfo.h" |
# include "../locale/localeinfo.h" |
47 |
#endif |
#endif |
48 |
|
|
|
/* POSIX says that <sys/types.h> must be included (by the caller) before |
|
|
<regex.h>. */ |
|
|
#include <sys/types.h> |
|
|
|
|
49 |
/* On some systems, limits.h sets RE_DUP_MAX to a lower value than |
/* On some systems, limits.h sets RE_DUP_MAX to a lower value than |
50 |
GNU regex allows. Include it before <regex.h>, which correctly |
GNU regex allows. Include it before <regex.h>, which correctly |
51 |
#undefs RE_DUP_MAX and sets it to the right value. */ |
#undefs RE_DUP_MAX and sets it to the right value. */ |