From 1961f21de4eba684b23824731a67b73cf9ec3d5c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 22 Jul 2006 16:35:23 +0000 Subject: [PATCH] Upgrade to gettext 0.15. --- lib/ChangeLog | 4 ++++ lib/xallocsa.h | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 29b556a7c9..9c59ea5115 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2005-02-12 Bruno Haible + + * xallocsa.h: Add extern "C" for C++. + 2006-05-17 Bruno Haible Cygwin portability. diff --git a/lib/xallocsa.h b/lib/xallocsa.h index cec84acc93..baede95775 100644 --- a/lib/xallocsa.h +++ b/lib/xallocsa.h @@ -1,5 +1,5 @@ /* Safe automatic memory allocation with out of memory checking. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2005 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify @@ -21,6 +21,12 @@ #include "allocsa.h" + +#ifdef __cplusplus +extern "C" { +#endif + + /* xallocsa(N) is a checking safe variant of alloca(N). It allocates N bytes of memory allocated on the stack, that must be freed using freesa() before the function returns. Upon failure, it exits with an error message. */ @@ -39,4 +45,10 @@ extern void * xmallocsa (size_t n); xnallocsa (size_t n, size_t s) - behaves like xallocsa (n * s) If this would be useful in your application. please speak up. */ + +#ifdef __cplusplus +} +#endif + + #endif /* _XALLOCSA_H */ -- 2.30.2