From: Bruno Haible Date: Wed, 9 Jan 2002 20:46:09 +0000 (+0000) Subject: Make these files usable by tests/lang-c++. X-Git-Tag: v0.11~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fdbf3ced12e9aca11028de127292a98ce00e4f9;p=thirdparty%2Fgettext.git Make these files usable by tests/lang-c++. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 09e53cbfe..c263c4173 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2002-01-09 Bruno Haible + + * setenv.h: Make it possible to include this file from C++. + * xsetenv.h: Likewise. + 2002-01-05 Bruno Haible * Makefile.am (libgettextlib_la_LDFLAGS): Add -lc. Needed on AIX. diff --git a/lib/setenv.h b/lib/setenv.h index 26eec1067..594787785 100644 --- a/lib/setenv.h +++ b/lib/setenv.h @@ -1,5 +1,5 @@ /* Setting environment variables. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,6 +30,10 @@ #else +#ifdef __cplusplus +extern "C" { +#endif + /* Set NAME to VALUE in the environment. If REPLACE is nonzero, overwrite an existing value. */ extern int setenv PARAMS ((const char *name, const char *value, int replace)); @@ -37,4 +41,8 @@ extern int setenv PARAMS ((const char *name, const char *value, int replace)); /* Remove the variable NAME from the environment. */ extern int unsetenv PARAMS ((const char *name)); +#ifdef __cplusplus +} +#endif + #endif diff --git a/lib/xsetenv.h b/lib/xsetenv.h index 20f4b69cb..67803f093 100644 --- a/lib/xsetenv.h +++ b/lib/xsetenv.h @@ -1,5 +1,5 @@ /* Setting environment variables, with out-of-memory checking. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,15 @@ /* Get unsetenv(). It can be used without error checking. */ #include "setenv.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Set NAME to VALUE in the environment. If REPLACE is nonzero, overwrite an existing value. With error checking. */ extern void xsetenv PARAMS ((const char *name, const char *value, int replace)); + +#ifdef __cplusplus +} +#endif