diff options
author | Bruno Haible <bruno@clisp.org> | 2002-01-09 20:46:09 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-22 00:40:03 +0200 |
commit | 6fdbf3ced12e9aca11028de127292a98ce00e4f9 (patch) | |
tree | 330ca4ff3762be593b8e5a97a2495243dcde923e | |
parent | 671659faef4bb8b4085d1bf1f58585e9555e5808 (diff) | |
download | external_gettext-6fdbf3ced12e9aca11028de127292a98ce00e4f9.zip external_gettext-6fdbf3ced12e9aca11028de127292a98ce00e4f9.tar.gz external_gettext-6fdbf3ced12e9aca11028de127292a98ce00e4f9.tar.bz2 |
Make these files usable by tests/lang-c++.
-rw-r--r-- | lib/ChangeLog | 5 | ||||
-rw-r--r-- | lib/setenv.h | 10 | ||||
-rw-r--r-- | lib/xsetenv.h | 10 |
3 files changed, 23 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 09e53cb..c263c41 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2002-01-09 Bruno Haible <bruno@clisp.org> + + * setenv.h: Make it possible to include this file from C++. + * xsetenv.h: Likewise. + 2002-01-05 Bruno Haible <bruno@clisp.org> * Makefile.am (libgettextlib_la_LDFLAGS): Add -lc. Needed on AIX. diff --git a/lib/setenv.h b/lib/setenv.h index 26eec10..5947877 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 20f4b69..67803f0 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 |