From 549fce0183f02d5f4253cf18bfc2bbd82f0b1783 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20Nieper-Wi=C3=9Fkirchen?= Date: Sat, 8 Jan 2022 11:56:02 +0100 Subject: [PATCH] c-stack: Adapt header file for use in C++ applications. * lib/c-stack.h: Add extern "C" block. --- ChangeLog | 5 +++++ lib/c-stack.h | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index ad525f531c..64d70fd41d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-01-08 Marc Nieper-Wißkirchen + + c-stack: Adapt header file for use in C++ applications. + * lib/c-stack.h: Add extern "C" block. + 2022-01-08 Marc Nieper-Wißkirchen version-etc: Adapt header file for use in C++ applications. diff --git a/lib/c-stack.h b/lib/c-stack.h index 883d5f3ed0..431450a05e 100644 --- a/lib/c-stack.h +++ b/lib/c-stack.h @@ -15,6 +15,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#ifdef __cplusplus +extern "C" +{ +#endif /* Set up ACTION so that it is invoked on C stack overflow and on other, stack-unrelated, segmentation violation. @@ -47,3 +51,7 @@ signal or exercise other system dependent exception handling APIs. */ extern int c_stack_action (_GL_ASYNC_SAFE void (* /*action*/) (int)); + +# ifdef __cplusplus +} +# endif -- 2.39.5