| /* Wrappers that don't throw invalid parameter notifications |
| with MSVC runtime libraries. |
| Copyright (C) 2011-2012 Free Software Foundation, Inc. |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 3, or (at your option) |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 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 <http://www.gnu.org/licenses/>. */ |
| #include "msvc-nothrow.h" |
| /* Get declarations of the native Windows API functions. */ |
| #define WIN32_LEAN_AND_MEAN |
| #if HAVE_MSVC_INVALID_PARAMETER_HANDLER |
| _gl_nothrow_get_osfhandle (int fd) |
| result = _get_osfhandle (fd); |
| result = (intptr_t) INVALID_HANDLE_VALUE; |