]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
c-stack: Adapt header file for use in C++ applications.
authorMarc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>
Sat, 8 Jan 2022 10:56:02 +0000 (11:56 +0100)
committerMarc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>
Sat, 8 Jan 2022 10:56:02 +0000 (11:56 +0100)
* lib/c-stack.h: Add extern "C" block.

ChangeLog
lib/c-stack.h

index ad525f531cc8acd86d67ac01f826779104f0e3fe..64d70fd41daccd81cda08bb3a84d1dcc2df18eda 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-01-08  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
+
+       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  <marc@nieper-wisskirchen.de>
 
        version-etc: Adapt header file for use in C++ applications.
index 883d5f3ed058c8f213cf601317dc32d0a867001f..431450a05ef478580ed13f5821c593a254b535c8 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+#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