diff options
Diffstat (limited to 'intl')
-rw-r--r-- | intl/dcgettext.c | 5 | ||||
-rw-r--r-- | intl/l10nflist.c | 2 | ||||
-rw-r--r-- | intl/localealias.c | 5 |
3 files changed, 3 insertions, 9 deletions
diff --git a/intl/dcgettext.c b/intl/dcgettext.c index 743c85bf22..ba3796d5e0 100644 --- a/intl/dcgettext.c +++ b/intl/dcgettext.c @@ -27,6 +27,7 @@ Cambridge, MA 02139, USA. */ #ifdef __GNUC__ # define alloca __builtin_alloca +# define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include <alloca.h> @@ -162,10 +163,6 @@ static const char *guess_category_value PARAMS ((int category, const char *categoryname)); -#ifdef _LIBC -#define HAVE_ALLOCA 1 -#endif - /* For those loosing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA diff --git a/intl/l10nflist.c b/intl/l10nflist.c index 00e3c8950a..798728c3b1 100644 --- a/intl/l10nflist.c +++ b/intl/l10nflist.c @@ -19,7 +19,7 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#if defined _LIBC && (defined __ARGZ_COUNT || defined __ARGZ_STRINGIFY) +#if defined _LIBC || (defined __ARGZ_COUNT && defined __ARGZ_STRINGIFY) # include <argz.h> #endif #include <ctype.h> diff --git a/intl/localealias.c b/intl/localealias.c index 8ecbfcb7a4..b30a9e5bf5 100644 --- a/intl/localealias.c +++ b/intl/localealias.c @@ -29,6 +29,7 @@ Cambridge, MA 02139, USA. */ #ifdef __GNUC__ # define alloca __builtin_alloca +# define HAVE_ALLOCA 1 #else # if defined HAVE_ALLOCA_H || defined _LIBC # include <alloca.h> @@ -78,10 +79,6 @@ void free (); #endif -#ifdef _LIBC -#define HAVE_ALLOCA 1 -#endif - /* For those loosing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA |