--- embedaddon/libiconv/lib/iconv.c 2012/05/29 09:29:43 1.1.1.2 +++ embedaddon/libiconv/lib/iconv.c 2021/03/17 13:38:46 1.1.1.3 @@ -1,5 +1,5 @@ /* - * Copyright (C) 1999-2008, 2011 Free Software Foundation, Inc. + * Copyright (C) 1999-2008, 2011, 2016, 2018 Free Software Foundation, Inc. * This file is part of the GNU LIBICONV Library. * * The GNU LIBICONV Library is free software; you can redistribute it @@ -14,12 +14,12 @@ * * You should have received a copy of the GNU Library General Public * License along with the GNU LIBICONV Library; see the file COPYING.LIB. - * If not, write to the Free Software Foundation, Inc., 51 Franklin Street, - * Fifth Floor, Boston, MA 02110-1301, USA. + * If not, see . */ #include +#include #include #include #include "config.h" @@ -178,8 +178,12 @@ static const struct alias sysdep_aliases[] = { }; #ifdef __GNUC__ __inline +#else +#ifdef __cplusplus +inline #endif -const struct alias * +#endif +static const struct alias * aliases2_lookup (register const char *str) { const struct alias * ptr; @@ -555,7 +559,7 @@ const char * iconv_canonicalize (const char * name) /* On systems which define __STDC_ISO_10646__, wchar_t is Unicode. This is also the case on native Woe32 systems and Cygwin >= 1.7, where we know that it is UTF-16. */ -#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || (defined __CYGWIN__ && CYGWIN_VERSION_DLL_MAJOR >= 1007) +#if (defined _WIN32 && !defined __CYGWIN__) || (defined __CYGWIN__ && CYGWIN_VERSION_DLL_MAJOR >= 1007) if (sizeof(wchar_t) == 4) { index = ei_ucs4internal; break;