--- embedaddon/libiconv/srclib/stdio-write.c 2012/05/29 09:29:43 1.1.1.2 +++ embedaddon/libiconv/srclib/stdio-write.c 2021/03/17 13:38:46 1.1.1.3 @@ -1,5 +1,5 @@ /* POSIX compatible FILE stream write function. - Copyright (C) 2008-2011 Free Software Foundation, Inc. + Copyright (C) 2008-2019 Free Software Foundation, Inc. Written by Bruno Haible , 2008. This program is free software: you can redistribute it and/or modify @@ -13,7 +13,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + along with this program. If not, see . */ #include @@ -30,7 +30,7 @@ error EINVAL. This write() function is at the basis of the function which flushes the buffer of a FILE stream. */ -# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# if defined _WIN32 && ! defined __CYGWIN__ # include # include @@ -38,6 +38,12 @@ # define WIN32_LEAN_AND_MEAN /* avoid including junk */ # include + +# if GNULIB_MSVC_NOTHROW +# include "msvc-nothrow.h" +# else +# include +# endif # if GNULIB_NONBLOCKING # define CLEAR_ERRNO \