diff options
Diffstat (limited to 'gl/msvc-nothrow.h')
| -rw-r--r-- | gl/msvc-nothrow.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gl/msvc-nothrow.h b/gl/msvc-nothrow.h index 82d3f6a2..121773d1 100644 --- a/gl/msvc-nothrow.h +++ b/gl/msvc-nothrow.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Wrappers that don't throw invalid parameter notifications | 1 | /* Wrappers that don't throw invalid parameter notifications |
| 2 | with MSVC runtime libraries. | 2 | with MSVC runtime libraries. |
| 3 | Copyright (C) 2011-2023 Free Software Foundation, Inc. | 3 | Copyright (C) 2011-2024 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
| @@ -25,11 +25,20 @@ | |||
| 25 | This file defines wrappers that turn such an invalid parameter notification | 25 | This file defines wrappers that turn such an invalid parameter notification |
| 26 | into an error code. */ | 26 | into an error code. */ |
| 27 | 27 | ||
| 28 | /* This file uses HAVE_MSVC_INVALID_PARAMETER_HANDLER. */ | ||
| 29 | #if !_GL_CONFIG_H_INCLUDED | ||
| 30 | #error "Please include config.h first." | ||
| 31 | #endif | ||
| 32 | |||
| 28 | #if defined _WIN32 && ! defined __CYGWIN__ | 33 | #if defined _WIN32 && ! defined __CYGWIN__ |
| 29 | 34 | ||
| 30 | /* Get original declaration of _get_osfhandle. */ | 35 | /* Get original declaration of _get_osfhandle. */ |
| 31 | # include <io.h> | 36 | # include <io.h> |
| 32 | 37 | ||
| 38 | # ifdef __cplusplus | ||
| 39 | extern "C" { | ||
| 40 | # endif | ||
| 41 | |||
| 33 | # if HAVE_MSVC_INVALID_PARAMETER_HANDLER | 42 | # if HAVE_MSVC_INVALID_PARAMETER_HANDLER |
| 34 | 43 | ||
| 35 | /* Override _get_osfhandle. */ | 44 | /* Override _get_osfhandle. */ |
| @@ -38,6 +47,10 @@ extern intptr_t _gl_nothrow_get_osfhandle (int fd); | |||
| 38 | 47 | ||
| 39 | # endif | 48 | # endif |
| 40 | 49 | ||
| 50 | # ifdef __cplusplus | ||
| 51 | } | ||
| 52 | # endif | ||
| 53 | |||
| 41 | #endif | 54 | #endif |
| 42 | 55 | ||
| 43 | #endif /* _MSVC_NOTHROW_H */ | 56 | #endif /* _MSVC_NOTHROW_H */ |
