summaryrefslogtreecommitdiffstats
path: root/gl/msvc-nothrow.h
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:27:12 (GMT)
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-10-31 15:27:12 (GMT)
commit5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch)
tree2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/msvc-nothrow.h
parent6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff)
downloadmonitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
Diffstat (limited to 'gl/msvc-nothrow.h')
-rw-r--r--gl/msvc-nothrow.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/gl/msvc-nothrow.h b/gl/msvc-nothrow.h
index 82d3f6a..121773d 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
39extern "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 */