/* Load needed message catalogs.
- Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc.
+ Copyright (C) 1995-1999, 2000-2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published
#include <sys/stat.h>
#ifdef __GNUC__
-# undef alloca
# define alloca __builtin_alloca
# define HAVE_ALLOCA 1
#else
-# ifdef _MSC_VER
-# include <malloc.h>
-# define alloca _alloca
+# if defined HAVE_ALLOCA_H || defined _LIBC
+# include <alloca.h>
# else
-# if defined HAVE_ALLOCA_H || defined _LIBC
-# include <alloca.h>
-# else
-# ifdef _AIX
+# ifdef _AIX
#pragma alloca
-# else
-# ifndef alloca
+# else
+# ifndef alloca
char *alloca ();
-# endif
# endif
# endif
# endif
if (outcharset == NULL || outcharset[0] == '\0')
{
# ifdef _LIBC
- outcharset = _NL_CURRENT (LC_CTYPE, CODESET);
+ outcharset = (*_nl_current[LC_CTYPE])->values[_NL_ITEM_INDEX (CODESET)].string;
# else
# if HAVE_ICONV
extern const char *locale_charset PARAMS ((void));